MessageBox (user32)
Last changed: -106.166.110.35

.
Summary

C# Signature:

[ DllImport( "User32.dll", EntryPoint="MessageBox", CharSet=CharSet.Auto )]

    public static extern int MessageBox( IntPtr hWnd, String text, String caption, uint type );

VB Signature:

    <DllImport("user32.dll", CharSet:=CharSet.Auto)> _
    Public Shared Function MessageBox(ByVal hwnd As Integer, ByVal [text] As String, ByVal caption As String, ByVal type As System.UInt32) As Integer
    End Function

User-Defined Types:

None.

Notes:

Fixed hwnd to be an IntPtr rather than an int

Tips & Tricks:

Please add some!

Sample Code:

MsgBox(100,1000);

Alternative Managed API:

System.Windows.Forms.MessageBox.Show

Documentation
MessageBox on MSDN