Skip to main content
Version: 4.2

MessageBoxDefaultButton

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Specifies constants defining the default button on a MessageBox.

public enum MessageBoxDefaultButton

Select one of the named values, such as Button1, Button2, Button3. The member descriptions define the behavior of each value.

Fields​

NameDescriptionValue
Button1The first button on the message box is the default button.
Button2The second button on the message box is the default button.
Button3The third button on the message box is the default button.

Used By​

NameDescription
MessageBox.DefaultButtonReturns the default button of the message box.
MessageBox.ShowDisplays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
MessageBox.ShowAsyncAsynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.