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






Specifies the icon that is displayed by a message box.

Syntax

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

Members

MemberDescription
CustomThe message box displays a custom icon specified in CustomImage property.
ErrorThe message box displays an error icon.
InformationThe message box displays an information icon.
NoneNo icon is displayed.
QuestionThe message box displays a question mark icon.
WarningThe message box displays a warning icon.

Example

The following example shows how to show a UXMessageBox that displays question mark image using code.
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 image parameter. This enumeration determines the image that is displayed on the UXMessageBox.

Inheritance Hierarchy

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

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.