Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MessageBoxOptions Enumeration

Specifies special display options for a message box.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[FlagsAttribute] 
public enum MessageBoxOptions
/** @attribute FlagsAttribute() */ 
public enum MessageBoxOptions
FlagsAttribute 
public enum MessageBoxOptions
<object property="EnumerationValue" .../>
 Member nameDescription
DefaultDesktopOnlyThe message box is displayed on the default desktop of the interactive window station. Specifies that the message box is displayed from a Microsoft .NET Framework version 3.0 windows service application in order to notify the user of an event.  
NoneNo options are set. 
RightAlignThe message box text and title bar caption are right-aligned. 
RtlReadingAll text, buttons, icons, and title bars are displayed right-to-left. 
ServiceNotificationThe message box is displayed on the currently active desktop even if a user is not logged on to the computer. Specifies that the message box is displayed from a Microsoft .NET Framework version 3.0 windows service application in order to notify the user of an event.  

For more information, see MessageBox Sample.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.