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();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top