Enum MessageBoxResult
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Specifies constants defining the result of a message box dialog. This enumeration is used to identify which button a user clicked on a message box.
public enum MessageBoxResultFields
Abort = 3-
The message box return value is Abort (typically sent from a button labeled Abort).
Cancel = 2-
The message box return value is Cancel (typically sent from a button labeled Cancel).
Continue = 11-
The message box return value is Continue (typically sent from a button labeled Continue).
Ignore = 5-
The message box return value is Ignore (typically sent from a button labeled Ignore).
No = 7-
The message box return value is No (typically sent from a button labeled No).
None = 0-
The message box return value is None. This is typically used when the message box is closed without a specific button being clicked.
OK = 1-
The message box return value is OK (typically sent from a button labeled OK).
Retry = 4-
The message box return value is Retry (typically sent from a button labeled Retry).
TryAgain = 10-
The message box return value is Try Again (typically sent from a button labeled Try Again).
Yes = 6-
The message box return value is Yes (typically sent from a button labeled Yes).
Remarks
The values correspond to the standard responses from a message box, allowing applications to react appropriately to user input. The numeric values mirror the Windows API constants for compatibility with native message box implementations. Applications should check the returned value to determine the user's choice and respond accordingly. The None value typically indicates the dialog was closed without clicking a button (e.g., via the X button or Escape key). Different button combinations from MessageBoxDialogButtons will return different subsets of these result values.