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,
    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 = &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
Find References
Show Printable Version
Revisions