ClassRadMessageBox
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMessageBox
Inheritance: objectRadMessageBox
Constructors
RadMessageBox()
Declaration
public RadMessageBox()
Properties
Cursor
Set the cursor that is displayed when the mouse pointer is over the control.
Instance
Gets the RadMessageBoxForm instance
Declaration
public static RadMessageBoxForm Instance { get; }
Property Value
ShowInTaskbar
Set the message to be shown in windows taskbar. Default is false
ThemeName
Gets or set theme name for the whole RadMessageBox
UseCompatibleTextRendering
Determines whether to use compatible text rendering engine (GDI+) or not (GDI).
Declaration
public static bool UseCompatibleTextRendering { set; }
Property Value
Methods
SetThemeName(string)
Set theme name for the whole RadMessageBox
Declaration
public static void SetThemeName(string themeName)
Parameters
themeName
Show(IWin32Window, string)
Displays a RadMessageBox in front of the specified object and with the specified text.
Declaration
public static DialogResult Show(IWin32Window parent, string text)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, Bitmap icon)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
Icon that displays in the RadMessageBox.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, Bitmap icon, MessageBoxDefaultButton defaultBtn)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
Icon that displays in the RadMessageBox.
defaultBtn
One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
defaultBtn
One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn, RightToLeft rtl)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
defaultBtn
One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.
rtl
One of the RightToLeft values that specifies right to left settings.
Returns
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultBtn, RightToLeft rtl, string detailsText)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
defaultBtn
One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.
rtl
One of the RightToLeft values that specifies right to left settings.
detailsText
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
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
public static DialogResult Show(IWin32Window parent, string text, string caption, MessageBoxButtons buttons, string detailsText)
Parameters
parent
An implementation of IWin32Window that will own the RadMessageBox.
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
detailsText
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
One of the DialogResult values.
Show(string)
Displays RadMessageBox with specified text.
Declaration
public static DialogResult Show(string text)
Parameters
text
The text to display in the RadMessageBox.
Returns
One of the DialogResult values
Show(string, string)
Displays RadMessageBox with specified text and caption.
Declaration
public static DialogResult Show(string text, string caption)
Parameters
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
Returns
One of the DialogResult values.
Show(string, string, MessageBoxButtons)
Displays a RadMessageBox with specified text, caption, and buttons.
Declaration
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons)
Parameters
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
Returns
One of the DialogResult values.
Show(string, string, MessageBoxButtons, RadMessageIcon)
Displays a RadMessageBox with specified text, caption, buttons, and icon.
Declaration
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon)
Parameters
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
Returns
One of the DialogResult values.
Show(string, string, MessageBoxButtons, RadMessageIcon, MessageBoxDefaultButton)
Displays a RadMessageBox with specified text, caption, buttons, icon and default button.
Declaration
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton)
Parameters
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.
Returns
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
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton, string detailsText)
Parameters
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the RadMessageBox.
detailsText
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
One of the DialogResult values.
Show(string, string, MessageBoxButtons, RadMessageIcon, string)
Displays a RadMessageBox with specified text, caption, buttons, and icon.
Declaration
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, RadMessageIcon icon, string detailsText)
Parameters
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
icon
One of the RadMessageIcon values that specifies which icon to display in the RadMessageBox.
detailsText
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
One of the DialogResult values.
Show(string, string, MessageBoxButtons, string)
Displays a RadMessageBox with specified text, caption, and buttons.
Declaration
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, string detailsText)
Parameters
text
The text to display in the RadMessageBox.
caption
The text to display in the title bar of the RadMessageBox.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the RadMessageBox.
detailsText
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
One of the DialogResult values.