C#在注销屏幕上方显示消息

C#在注销屏幕上方显示消息,c#,windows,C#,Windows,我试图在登录屏幕上方显示一条消息,如: “再见” 但这怎么可能呢 我尝试通过以下方式禁用注销: Process.Start("shutdown" , "/a"); 这不起作用,但它确实会在注销屏幕上方显示一条错误消息 MessageBox.Show( "message", "title", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, (MessageBoxOpt

我试图在登录屏幕上方显示一条消息,如:

“再见”

但这怎么可能呢

我尝试通过以下方式禁用注销:

Process.Start("shutdown" , "/a");
这不起作用,但它确实会在注销屏幕上方显示一条错误消息

 MessageBox.Show(
 "message",
  "title",
  MessageBoxButtons.OK,
  MessageBoxIcon.Error,
  MessageBoxDefaultButton.Button1,
  (MessageBoxOptions)0x40000);

在注销屏幕上也不起作用

 MessageBox.Show(
 "message",
  "title",
  MessageBoxButtons.OK,
  MessageBoxIcon.Error,
  MessageBoxDefaultButton.Button1,
  (MessageBoxOptions)0x40000);
如何在windows 10登录屏幕上方显示消息


或者取消注销

您在说什么登录屏幕?你是说Windows登录屏幕?是的,Windows 10关闭屏幕:可能与@AlexK重复。他们希望在关机时显示消息,而不是取消。您可以为Windows登录和注销屏幕指定背景图像。那会有帮助吗?如果取消注销是首选,那么您已经有了答案。