MessageBoxOptions 枚举
定义
为消息框指定特殊显示选项。Specifies special display options for a message box.
此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。
public enum class MessageBoxOptions
[System.Flags]
public enum MessageBoxOptions
type MessageBoxOptions =
Public Enum MessageBoxOptions
- 继承
- 属性
字段
DefaultDesktopOnly | 131072 | 消息框显示在交互式窗口站的默认桌面上。The message box is displayed on the default desktop of the interactive window station. 指定消息框从 .NET Framework 窗口服务应用程序中显示,以便将事件通知用户。Specifies that the message box is displayed from a .NET Framework windows service application in order to notify the user of an event. |
None | 0 | 未设置选项。No options are set. |
RightAlign | 524288 | 消息框文本和标题栏标题靠右对齐。The message box text and title bar caption are right-aligned. |
RtlReading | 1048576 | 所有文本、按钮、图标和标题栏都从右向左显示。All text, buttons, icons, and title bars are displayed right-to-left. |
ServiceNotification | 2097152 | 即使用户未登录到计算机,消息框也会在当前活动的桌面上显示。The message box is displayed on the currently active desktop even if a user is not logged on to the computer. 指定消息框从 .NET Framework 窗口服务应用程序中显示,以便将事件通知用户。Specifies that the message box is displayed from a .NET Framework windows service application in order to notify the user of an event. |
示例
有关详细信息, 请参阅MessageBox 示例。For more information, see MessageBox Sample.