Class
RadMessageBox

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadMessageBox

Inheritance: objectRadMessageBox

Constructors

RadMessageBox()

Declaration

cs-api-definition
public RadMessageBox()

Properties

Cursor

Set the cursor that is displayed when the mouse pointer is over the control.

Declaration

cs-api-definition
public static Cursor Cursor { set; }

Property Value

Cursor

Instance

Gets the RadMessageBoxForm instance

Declaration

cs-api-definition
public static RadMessageBoxForm Instance { get; }

Property Value

RadMessageBoxForm

LastShowDpiScale

Declaration

cs-api-definition
public static SizeF LastShowDpiScale { get; }

Property Value

SizeF

ShowInTaskbar

Set the message to be shown in windows taskbar. Default is false

Declaration

cs-api-definition
public static bool ShowInTaskbar { set; }

Property Value

bool

ThemeName

Gets or set theme name for the whole RadMessageBox

Declaration

cs-api-definition
public static string ThemeName { get; set; }

Property Value

string

UseCompatibleTextRendering

Determines whether to use compatible text rendering engine (GDI+) or not (GDI).

Declaration

cs-api-definition
public static bool UseCompatibleTextRendering { set; }

Property Value

bool

Methods

SetThemeName(string)

Set theme name for the whole RadMessageBox

Declaration

cs-api-definition
public static void SetThemeName(string themeName)

Parameters

themeName

string

Show(IWin32Window, string)

Displays a RadMessageBox in front of the specified object and with the specified text.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(IWin32Window, string, string)

Displays a RadMessageBox in front of the specified object and with the specified text and caption.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(IWin32Window, string, string, MessageBoxButtons)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, and buttons.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(IWin32Window, string, string, MessageBoxButtons, Bitmap)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, buttons, and icon.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, Bitmap icon)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

Bitmap

Icon that displays in the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(IWin32Window, string, string, MessageBoxButtons, Bitmap, MessageBoxDefaultButton)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, Bitmap icon, MessageBoxDefaultButton defaultBtn)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

Bitmap

Icon that displays in the RadMessageBox.

defaultBtn

MessageBoxDefaultButton

One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(IWin32Window, string, string, MessageBoxButtons, RadMessageIcon)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, buttons, and icon.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(IWin32Window, string, string, MessageBoxButtons, RadMessageIcon, MessageBoxDefaultButton)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

defaultBtn

MessageBoxDefaultButton

One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.

Returns

DialogResult

One of the DialogResult values

Show(IWin32Window, string, string, MessageBoxButtons, RadMessageIcon, MessageBoxDefaultButton, RightToLeft)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn, RightToLeft rtl)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

defaultBtn

MessageBoxDefaultButton

One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.

rtl

RightToLeft

One of the RightToLeft values that specifies right to left settings.

Returns

DialogResult

One of the DialogResult values

Show(IWin32Window, string, string, MessageBoxButtons, RadMessageIcon, MessageBoxDefaultButton, RightToLeft, string)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn, RightToLeft rtl, string detailsText)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

defaultBtn

MessageBoxDefaultButton

One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.

rtl

RightToLeft

One of the RightToLeft values that specifies right to left settings.

detailsText

string

If this parameter is set to a string value the message box will contain a details button and a text field which will display this string.

Returns

DialogResult

One of the DialogResult values

Show(IWin32Window, string, string, MessageBoxButtons, string)

Displays a RadMessageBox in front of the specified object and with the specified text, caption, and buttons.

Declaration

cs-api-definition
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, string detailsText)

Parameters

parent

IWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

detailsText

string

If this parameter is set to a string value the message box will contain a details button and a text field which will display this string.

Returns

DialogResult

One of the DialogResult values.

Show(string)

Displays RadMessageBox with specified text.

Declaration

cs-api-definition
public static DialogResult Show(string text)

Parameters

text

string

The text to display in the RadMessageBox.

Returns

DialogResult

One of the DialogResult values

Show(string, string)

Displays RadMessageBox with specified text and caption.

Declaration

cs-api-definition
public static DialogResult Show(string text, string caption)

Parameters

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(string, string, MessageBoxButtons)

Displays a RadMessageBox with specified text, caption, and buttons.

Declaration

cs-api-definition
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons)

Parameters

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(string, string, MessageBoxButtons, RadMessageIcon)

Displays a RadMessageBox with specified text, caption, buttons, and icon.

Declaration

cs-api-definition
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon)

Parameters

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(string, string, MessageBoxButtons, RadMessageIcon, MessageBoxDefaultButton)

Displays a RadMessageBox with specified text, caption, buttons, icon and default button.

Declaration

cs-api-definition
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton)

Parameters

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

defaultButton

MessageBoxDefaultButton

One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.

Returns

DialogResult

One of the DialogResult values.

Show(string, string, MessageBoxButtons, RadMessageIcon, MessageBoxDefaultButton, string)

Displays a RadMessageBox with specified text, caption, buttons, icon and default button.

Declaration

cs-api-definition
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton, string detailsText)

Parameters

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

defaultButton

MessageBoxDefaultButton

One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.

detailsText

string

If this parameter is set to a string value the message box will contain a details button and a text field which will display this string.

Returns

DialogResult

One of the DialogResult values.

Show(string, string, MessageBoxButtons, RadMessageIcon, string)

Displays a RadMessageBox with specified text, caption, buttons, and icon.

Declaration

cs-api-definition
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, string detailsText)

Parameters

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

icon

RadMessageIcon

One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.

detailsText

string

If this parameter is set to a string value the message box will contain a details button and a text field which will display this string.

Returns

DialogResult

One of the DialogResult values.

Show(string, string, MessageBoxButtons, string)

Displays a RadMessageBox with specified text, caption, and buttons.

Declaration

cs-api-definition
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, string detailsText)

Parameters

text

string

The text to display in the RadMessageBox.

caption

string

The text to display in the title bar of the RadMessageBox.

buttons

MessageBoxButtons

One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.

detailsText

string

If this parameter is set to a string value the message box will contain a details button and a text field which will display this string.

Returns

DialogResult

One of the DialogResult values.