Intersoft ClientUI Documentation
MessageBoxButton Enumeration
Example  See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXDesktop Namespace : MessageBoxButton Enumeration






Specifies the buttons that are displayed on a message box. Used as an argument of the Show method.

Syntax

Visual Basic (Declaration) 
Public Enum MessageBoxButton 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As MessageBoxButton
C# 
public enum MessageBoxButton : System.Enum 
Delphi 
public enum MessageBoxButton = class(System.Enum)
JScript 
public enum MessageBoxButton extends System.Enum
Managed Extensions for C++ 
__value public enum MessageBoxButton : public System.Enum 
C++/CLI 
public enum class MessageBoxButton : public System.Enum 

Members

MemberDescription
CustomThe message box displays custom buttons specified by developers.
OKThe message box displays an OK button.
OKCancelThe message box displays OK and Cancel buttons.
YesNoThe message box displays Yes and No buttons.
YesNoCancelThe message box displays Yes, No, and Cancel buttons.

Example

The following example shows how to display Yes, No and Cancel button for a UXMessageBox.
C#Copy Code
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
            }
        }
    );

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.

Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.