Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

MessageBoxResult (Enums)
 
.
Summary
MessageBoxResult - Return value of a message box

C# Definition:

/// <summary>
/// Represents possible values returned by the MessageBox function.
/// </summary>
public enum MessageBoxResult : uint
{
    Ok = 1,
    Cancel=2,
    Abort=3,
    Retry=4,
    Ignore=5,
    Yes=6,
    No=7,
    Close=8,
    Help=9,
    TryAgain=10,
    Continue=11,
    Cancel,
    Abort,
    Retry,
    Ignore,
    Yes,
    No,
    Close,
    Help,
    TryAgain,
    Continue,
    Timeout = 32000
}

VB.NET Definition:

''' <summary>
''' Represents possible values returned by the MessageBox function.
''' </summary>
Public Enum MessageBoxResult As UInteger
     Ok = 1
     Cancel
     Abort
     Retry
     Ignore
     Yes
     No
     Close
     Help
     TryAgain
     ContinueOn
     Timeout = 32000
End Enum

VB Definition:

public Enum MessageBoxResult
     Ok     As Long = 1
     Cancel     As Long = 2
     Abort      As Long = 3
     Retry      As Long = 4
     Ignore     As Long = 5
     Yes    As Long = 6
     No     As Long = 7
     Close      As Long = 8
     Help       As Long = 9
     TryAgain   As Long = 10
     ContinueOn As Long = 11
     Timeout    As Long = 32000
     Ok     As Long = &H1
     Cancel     As Long = &H2
     Abort      As Long = &H4
     Retry      As Long = &H8
     Ignore     As Long = &H10
     Yes    As Long = &H20
     No     As Long = &H40
     Close      As Long = &H80
     Help       As Long = &H100
     TryAgain   As Long = &H200
     ContinueOn As Long = &H400
     Timeout    As Long = &H7D00
End Enum

Notes:

None.

Managed API Alternative:

System.Windows.Forms.DialogResult

Documentation
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions