MessageBox (user32)
Last changed: -106.166.110.35

.
Summary

C# Signature:

[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int MessageBox(int hWnd, String text, String caption, uint type);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

    class Class1
    {
        [DllImport("user32.dll", CharSet=CharSet.Auto)]
        public static extern int MessageBox(int hWnd, String text, String caption,
            uint type);

        [STAThread]
        static void Main(string[] args)
        {
            Class1.MessageBox(0, "Text", "Caption", 0 );
        }
    }

}

Alternative Managed API:

System.Windows.Forms.MessageBox.Show

Documentation
MessageBox on MSDN