Intersoft ClientUI Documentation
Show(IWindow,String,String,MessageBoxButton,MessageBoxImage,DialogResult,MessageBoxOptions,Action<DialogResult>) Method
See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXDesktop Namespace > UXMessageBox Class > Show Method : Show(IWindow,String,String,MessageBoxButton,MessageBoxImage,DialogResult,MessageBoxOptions,Action<DialogResult>) Method






window
A Window that represents the owner window of the message box.
message
A String that specifies the text to display.
caption
A String that specifies the title bar caption to display.
button
A MessageBoxButton value that specifies which button or buttons to display.
image
A MessageBoxImage value that specifies the icon to display.
result
A DialogBoxResult value that specifies the default dialog result of the message box.
options
A MessageBoxOptions that represents the appearances options.
resultCallback
An Action delegate that will be called when the message box is closed.
Displays a message box in front of the specified window. The message box displays a message, title bar caption, button, icon and options; and it also returns a result.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub Show( _
   ByVal window As IWindow, _
   ByVal message As String, _
   ByVal caption As String, _
   ByVal button As MessageBoxButton, _
   ByVal image As MessageBoxImage, _
   ByVal result As DialogResult, _
   ByVal options As MessageBoxOptions, _
   ByVal resultCallback As Action(Of DialogResult) _
) 
Visual Basic (Usage)Copy Code
Dim window As IWindow
Dim message As String
Dim caption As String
Dim button As MessageBoxButton
Dim image As MessageBoxImage
Dim result As DialogResult
Dim options As MessageBoxOptions
Dim resultCallback As Action(Of DialogResult)
 
UXMessageBox.Show(window, message, caption, button, image, result, options, resultCallback)
C# 
public static void Show( 
   IWindow window,
   string message,
   string caption,
   MessageBoxButton button,
   MessageBoxImage image,
   DialogResult result,
   MessageBoxOptions options,
   Action<DialogResult> resultCallback
)
Delphi 
public procedure Show( 
    window: IWindow;
    message: String;
    caption: String;
    button: MessageBoxButton;
    image: MessageBoxImage;
    result: DialogResult;
    options: MessageBoxOptions;
    resultCallback: Action
); static; 
JScript 
public static function Show( 
   window : IWindow,
   message : String,
   caption : String,
   button : MessageBoxButton,
   image : MessageBoxImage,
   result : DialogResult,
   options : MessageBoxOptions,
   resultCallback : Action
);
Managed Extensions for C++ 
public: static void Show( 
   IWindow* window,
   string* message,
   string* caption,
   MessageBoxButton button,
   MessageBoxImage image,
   DialogResult result,
   MessageBoxOptions* options,
   Action<DialogResult>* resultCallback
) 
C++/CLI 
public:
static void Show( 
   IWindow^ window,
   String^ message,
   String^ caption,
   MessageBoxButton button,
   MessageBoxImage image,
   DialogResult result,
   MessageBoxOptions^ options,
   Action<DialogResult>^ resultCallback
) 

Parameters

window
A Window that represents the owner window of the message box.
message
A String that specifies the text to display.
caption
A String that specifies the title bar caption to display.
button
A MessageBoxButton value that specifies which button or buttons to display.
image
A MessageBoxImage value that specifies the icon to display.
result
A DialogBoxResult value that specifies the default dialog result of the message box.
options
A MessageBoxOptions that represents the appearances options.
resultCallback
An Action delegate that will be called when the message box is closed.

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

© 2011 All Rights Reserved.