[]
        
(Showing Draft Content)

C1.WPF.C1MessageBox.Show

Show Method

Show(string, string, C1MessageBoxButton, C1MessageBoxIcon, Action<MessageBoxResult>)

Displays a message box that has a message, title bar caption, button and icon; and calls back with the result.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button, C1MessageBoxIcon icon, Action<MessageBoxResult> callback)
Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton, icon As C1MessageBoxIcon, callback As Action(Of MessageBoxResult))
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, Action<MessageBoxResult>)

Displays a message box that has a message and calls back with the result.

Declaration
public static void Show(string message, Action<MessageBoxResult> callback)
Public Shared Sub Show(message As String, callback As Action(Of MessageBoxResult))
Parameters
Type Name Description
string message

The text to display as a message.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, string, Action<MessageBoxResult>)

Displays a message box that has a message and title bar caption; and calls back with the result.

Declaration
public static void Show(string message, string caption, Action<MessageBoxResult> callback)
Public Shared Sub Show(message As String, caption As String, callback As Action(Of MessageBoxResult))
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, string, C1MessageBoxButton, Action<MessageBoxResult>)

Displays a message box that has a message, title bar caption and button; and calls back with the result.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button, Action<MessageBoxResult> callback)
Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton, callback As Action(Of MessageBoxResult))
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, string, C1MessageBoxIcon, Action<MessageBoxResult>)

Displays a message box that has a message, title bar caption and icon; and calls back with the result.

Declaration
public static void Show(string message, string caption, C1MessageBoxIcon icon, Action<MessageBoxResult> callback)
Public Shared Sub Show(message As String, caption As String, icon As C1MessageBoxIcon, callback As Action(Of MessageBoxResult))
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string)

Displays a message box that has a message.

Declaration
public static void Show(string message)
Public Shared Sub Show(message As String)
Parameters
Type Name Description
string message

The text to display as a message.

Show(string, string)

Displays a message box that has a message and title bar caption.

Declaration
public static void Show(string message, string caption)
Public Shared Sub Show(message As String, caption As String)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

Show(string, string, C1MessageBoxButton)

Displays a message box that has a message, title bar caption and button.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button)
Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

Show(string, string, C1MessageBoxIcon)

Displays a message box that has a message, title bar caption and icon.

Declaration
public static void Show(string message, string caption, C1MessageBoxIcon icon)
Public Shared Sub Show(message As String, caption As String, icon As C1MessageBoxIcon)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.

Show(string, string, C1MessageBoxButton, C1MessageBoxIcon)

Displays a message box that has a message, title bar caption and icon.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button, C1MessageBoxIcon icon)
Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton, icon As C1MessageBoxIcon)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.