[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int MessageBox(IntPtr hWnd, String text, String caption, uint type);
None.
None.
Please add some!
class Class1
{
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int MessageBox(IntPtr hWnd, String text, String caption,
uint type);
[STAThread]
static void Main(string[] args)
{
Class1.MessageBox(new IntPtr(0), "Text", "Caption", 0 );
}
}
}
System.Windows.Forms.MessageBox.Show