New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadMessageBox

Inheritance: objectRadMessageBox

Constructors

C#
public RadMessageBox()

Properties

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

C#
public static Cursor Cursor { set; }

Gets the RadMessageBoxForm instance

C#
public static RadMessageBoxForm Instance { get; }
C#
public static SizeF LastShowDpiScale { get; }

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

C#
public static bool ShowInTaskbar { set; }

Gets or set theme name for the whole RadMessageBox

C#
public static string ThemeName { get; set; }

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

C#
public static bool UseCompatibleTextRendering { set; }

Methods

Set theme name for the whole RadMessageBox

C#
public static void SetThemeName(string themeName)
Parameters:themeNamestring

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, Bitmap icon, MessageBoxDefaultButton defaultBtn)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconBitmap

Icon that displays in the RadMessageBox.

defaultBtnMessageBoxDefaultButton

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

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, Bitmap icon)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconBitmap

Icon that displays in the RadMessageBox.

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn, RightToLeft rtl, string detailsText)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

defaultBtnMessageBoxDefaultButton

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

rtlRightToLeft

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

detailsTextstring

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

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn, RightToLeft rtl)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

defaultBtnMessageBoxDefaultButton

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

rtlRightToLeft

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

Returns:

DialogResult

One of the DialogResult values

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

defaultBtnMessageBoxDefaultButton

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

Returns:

DialogResult

One of the DialogResult values

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, string detailsText)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

detailsTextstring

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.

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(IWin32Window parent, string text, string caption)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

captionstring

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

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(IWin32Window parent, string text)
Parameters:parentIWin32Window

An implementation of IWin32Window that will own the RadMessageBox.

textstring

The text to display in the RadMessageBox.

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton, string detailsText)
Parameters:textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

defaultButtonMessageBoxDefaultButton

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

detailsTextstring

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.

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

C#
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton)
Parameters:textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

defaultButtonMessageBoxDefaultButton

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

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, string detailsText)
Parameters:textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

detailsTextstring

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.

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

C#
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon)
Parameters:textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

iconRadMessageIcon

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

Returns:

DialogResult

One of the DialogResult values.

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

C#
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, string detailsText)
Parameters:textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

detailsTextstring

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.

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

C#
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons)
Parameters:textstring

The text to display in the RadMessageBox.

captionstring

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

buttonsMessageBoxButtons

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

Returns:

DialogResult

One of the DialogResult values.

Displays RadMessageBox with specified text and caption.

C#
public static DialogResult Show(string text, string caption)
Parameters:textstring

The text to display in the RadMessageBox.

captionstring

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

Returns:

DialogResult

One of the DialogResult values.

Displays RadMessageBox with specified text.

C#
public static DialogResult Show(string text)
Parameters:textstring

The text to display in the RadMessageBox.

Returns:

DialogResult

One of the DialogResult values