skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadMessageBox

Inheritance
System.Object
RadMessageBox
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.