msgbox ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there something like vb's msgbox in c# which will work
also in console apps, like msgbox does ?
 
tt,

You can call the static Show method on the MessageBox class in the
System.Windows.Forms namespace. This will give you what you want.

Hope this helps.
 
tt said:
Is there something like vb's msgbox in c# which will work
also in console apps, like msgbox does ?

Add a reference to your app for System.Windows.Forms.dll. You can then
call System.Windows.Forms.MessageBox.Show();
 
Back
Top