AdvancedMessageDialog Class

Note: This API is now obsolete.
Provides a dialog for error and other kind of messages.

Definition

Namespace: KGySoft.WinForms.Forms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
[ObsoleteAttribute("Use the Dialogs class or the KGySoft.WinForms.Components.TaskDialog class instead.")]
public sealed class AdvancedMessageDialog : BaseForm
Inheritance
Object    MarshalByRefObject    Component    Control    ScrollableControl    ContainerControl    Form    BaseForm    AdvancedMessageDialog

Constructors

AdvancedMessageDialog Creates a new instance of the AdvancedMessageDialog class.

Properties

AutoScaleFont Gets or sets whether the Font should be automatically scaled when DPI changes and the current thread has per-monitor DPI awareness.
Default value: .
(Inherited from BaseForm)
CommandBindings Gets the command bindings of this form. Being a WinFormsCommandBindingsCollection, the Add methods also add the PropertyCommandStateUpdater to the created bindings.
See the GitHub documentation for details.
(Inherited from BaseForm)
CustomErrorHandler An optional custom error handler that can be used to handle exceptions in a custom way (e.g. log into a database or file).
DeviceScale Gets the current scale of the form's display device. Before loading the form, or when per-monitor DPI awareness is not enabled, this property returns the system scale of the primary display, which is the same as the ScaleHelper.SystemScale property.
(Inherited from BaseForm)
DynamicStringLocalization Gets or sets the dynamic string localization strategy of the form. It allows using potentially auto-generated string resources from .resx files.

See the online help for an example.

(Inherited from BaseForm)
ErrorLogDirectory Gets or sets the log directory for saving logs and screenshots.
FontGets or sets the font of the text displayed by the control.
(Inherited from BaseForm)
IconGets or sets the icon for the form.
(Inherited from BaseForm)
Image Gets or sets the dialog image.
IsSuspended Gets whether the form is suspended by an owned MDI child.
(Inherited from BaseForm)
Text Gets or sets the caption text of the dialog.
(Overrides FormText)
TranslateControls Gets or sets whether the form should translate its controls.
This property is obsolete. Use the DynamicStringLocalization property or override the ApplyResources and/or ApplyStringResources methods.
(Inherited from BaseForm)
Obsolete

Methods

Execute(Exception) Shows a message dialog for an exception with a default caption. Saves log and screenshot if directory is set in ErrorLogDirectory.
Execute(String) Shows an information dialog.
Execute(String, AdvancedDialogTypes) Shows a message dialog for any kind of message.
Execute(Exception, String, String) Shows a message dialog for an exception.
Execute(String, String, AdvancedDialogTypes) Shows a message dialog for any kind of message.
Execute(String, String, String, AdvancedDialogTypes, ButtonTypes) Shows a message dialog for any kind of message.
Execute(String, String, String, AdvancedDialogTypes, ButtonTypes, Boolean, Boolean, String) Shows a message dialog for any kind of message.
InvalidateMdiClientArea Invalidates the MDI client area. Has effect only if the IsMdiContainer or IsMdiChild is for this form.
(Inherited from BaseForm)
ShowMdiChild Shows the form as an MDI child, owned by of this BaseForm. This BaseForm must be either an MDI container or another MDI child.
(Inherited from BaseForm)

Events

BeforeKillApplication Occurs before the application terminates if user chooses closing the application.
CalledMdiChildClosed Occurs when an MDI child shown by a ShowMdiChild method call is closed.
(Inherited from BaseForm)
Obsolete
DeviceScaleAutoResized Occurs with per-monitor DPI awareness, when the form is resized automatically after the DeviceScaleChanged event.
(Inherited from BaseForm)
DeviceScaleChanged Occurs with per-monitor DPI awareness, when the scale of the form's display device changes, after performing the default processing of the corresponding Windows message. On platform targets where the DpiChanged event exists, this event is raised after DpiChanged.
(Inherited from BaseForm)
DeviceScaleChanging Occurs with per-monitor DPI awareness, when the scale of the form's display device changes, before performing the default processing of the corresponding Windows message. On platform targets where the DpiChanged event exists, this event is raised before DpiChanged.
(Inherited from BaseForm)
DeviceScaleGetNewSize Occurs with per-monitor DPI awareness V2, before calculating the suggested bounds for the DeviceScaleChanging and DeviceScaleChanged events. Similar to the Form.OnGetDpiScaledSize method, but this is available also as an event for all .NET versions, and it does not cache the result.
(Inherited from BaseForm)
DynamicStringLocalizationChanged Occurs when the DynamicStringLocalization property has changed.
(Inherited from BaseForm)
OwnedMdiChildClosed Occurs when an MDI child shown by the ShowMdiChild method is closed.
(Inherited from BaseForm)
PaintMdiClientArea Occurs when MDI area of the form has to be repainted. IsMdiContainer must be true to access this event.
(Inherited from BaseForm)
Obsolete
ReportSender Occurs when the user presses the report sender button, which appears only when this event is subscribed.
Resumed Occurs when the MDI Child window called by ShowMdiChild that suspended the caller instance is closed.
(Inherited from BaseForm)
Suspended Occurs when an MDI Child window called by ShowMdiChild suspends the caller instance.
(Inherited from BaseForm)

Extension Methods

GetFormatFlags Gets the formatting flags for the text of a custom drawn control.
(Defined by ControlExtensions)
GetScale Gets the current scale factor of the specified control. If per-monitor DPI awareness is not enabled, it always returns SystemScale.
(Defined by ScaleHelper)
GetScrollBarSize Gets the recommended width and height of scrollbars matching the current scaling of the specified control.
(Defined by ScaleHelper)
HasDefaultScaling Gets whether the display that the specified control belongs to has the same DPI as the initial DPI of the primary display.
(Defined by ScaleHelper)
ScaleHeight Scales the specified height by the vertical scale factor of the control.
(Defined by ScaleHelper)
ScaleSize Scales the specified size by the scale factor of the control.
(Defined by ScaleHelper)
ScaleWidth Scales the specified width by the horizontal scale factor of the control.
(Defined by ScaleHelper)
SetControlEnabled Sets the Enabled property of the child controls within the specified root control, or the Enabled property of the specified control itself, if it is not a recognized container control. By this way pages of a TabControl will remain selectable, a SplitContainer remains resizable, etc.
(Defined by ControlExtensions)
SetControlReadonly Recursively sets the read-only state in the children of the specified root control. Affects TextBoxBase and IReadOnlyCapable instances.
(Defined by ControlExtensions)
SetDoubleBuffered Sets the double buffered state of a control
(Defined by ControlExtensions)
SetStyle Sets a specified ControlStyles flag to either or . It calls the protected Control.SetStyle method on the specified control as if it was a public method.
(Defined by ControlExtensions)

See Also