Intersoft ClientUI Documentation
MessageBoxButton Enumeration
Example Example 



Specifies the buttons that are displayed on a message box. Used as an argument of the Show method.
Syntax
Public Enum MessageBoxButton 
   Inherits System.Enum
Dim instance As MessageBoxButton
public enum MessageBoxButton : System.Enum 
public enum class MessageBoxButton : public System.Enum 
Members
MemberDescription
Custom The message box displays custom buttons specified by developers.
OK The message box displays an OK button.
OKCancel The message box displays OK and Cancel buttons.
YesNo The message box displays Yes and No buttons.
YesNoCancel The message box displays Yes, No, and Cancel buttons.
Remarks
This enumeration is used by the UXMessageBox.Show method in the button parameter. This enumeration determines the predefined buttons that are displayed on the UXMessageBox.
Example
The following example shows how to display Yes, No and Cancel button for a UXMessageBox.
UXMessageBox.Show(

        // owner of the message box
        null, 

        // message
        "Do you want to save this document before the application closes?",

        // caption
        "Notepad",

        // predefined buttons
        Intersoft.Client.UI.Aqua.UXDesktop.MessageBoxButton.YesNoCancel,

        // predefined image
        MessageBoxImage.Question,

        // callback handler for the close event
        (dialogResult) =>
        {
            if (dialogResult == Intersoft.Client.Framework.DialogResult.OK)
            {
                // save the document
            }
        }
    );
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Intersoft.Client.UI.Aqua.UXDesktop.MessageBoxButton

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Intersoft.Client.UI.Aqua.UXDesktop Namespace

Send Feedback