RadMessageBoxForm
Hosts the message, configured buttons, icon, and optional expandable details text shown by RadMessageBox.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMessageBoxForm : RadForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormRadMessageBoxForm...
Implements:
Inherited Members
Constructors
Creates the message-box form, initializes its controls, and subscribes to theme, keyboard, and DPI changes.
public RadMessageBoxForm()
Properties
Sets the displayed button combination and maps its buttons to their corresponding dialog results. The Abort/Retry/Ignore configuration also disables the title-bar Close button.
public MessageBoxButtons ButtonsConfiguration { set; }
Gets ot sets the size of the buttons shown in the message box.
public Size ButtonSize { get; set; }
Sets focus to the requested default button; if that button is not present, the first button remains focused.
public MessageBoxDefaultButton DefaultButton { set; }
Gets or sets the read-only text shown in the expandable details area. A non-empty value displays the Details button but does not expand the area.
public string DetailsText { get; set; }
Gets or sets a value indicating whether a beep is played when the message box is shown.
public bool EnableBeep { get; set; }
true if a beep is played; otherwise, false.
RadMessageBox Icon
public Bitmap MessageIcon { set; }
Sets the RadMessageBox Text
public string MessageText { get; set; }
Sets the right-to-left layout direction on the form, message label, and standard buttons.
public override RightToLeft RightToLeft { set; }
Overrides:
Determines whether to use compatible text rendering engine (GDI+) or not (GDI).
public bool UseCompatibleTextRendering { set; }
Methods
Creates the message-box accessible object and records that accessibility notifications may be needed when shown.
protected override AccessibleObject CreateAccessibilityInstance()
The accessible object for this form.
Overrides:
Hides the details text, restores the compact form height, and points the disclosure arrow downward.
public void HideDetails()
Collapses the details area before the form closes so its expanded height is not retained.
protected override void OnClosing(CancelEventArgs e)
The cancellation data for the closing event.
Overrides:
Initializes the visual tree and sizes and positions the message-box contents for the active theme and DPI.
Starts the delayed accessibility notification for an already-created accessible object.
protected override void OnShown(EventArgs e)
The shown event data.
Overrides:
Displays the details text, expands the form by its details-section height, and points the disclosure arrow upward.
public void ShowDetails()