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