Intersoft ClientUI Documentation
MessageBoxImage Enumeration
Example Example 



Specifies the icon that is displayed by a message box.
Syntax
Public Enum MessageBoxImage 
   Inherits System.Enum
Dim instance As MessageBoxImage
public enum MessageBoxImage : System.Enum 
public enum class MessageBoxImage : public System.Enum 
Members
MemberDescription
Custom The message box displays a custom icon specified in CustomImage property.
Error The message box displays an error icon.
Information The message box displays an information icon.
None No icon is displayed.
Question The message box displays a question mark icon.
Warning The message box displays a warning icon.
Remarks

This enumeration is used by the UXMessageBox.Show method in the image parameter. This enumeration determines the image that is displayed on the UXMessageBox.

Example
The following example shows how to show a UXMessageBox that displays question mark image using 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
            }
        }
    );
Inheritance Hierarchy

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

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