views:

369

answers:

3

When I click a button, I want a box to popup on the screen and display a simple message. Nothing fancy really. How would I do that?

A: 

Nothing fancy? Try MessageBox

http://www.homeandlearn.co.uk/csharp/csharp%5Fs1p9.html

Andrei Drynov
+1  A: 

Just type mbox then hit tab it will give you a magic shortcut to pump up a message box.

Spence
+2  A: 
System.Windows.Forms.MessageBox.Show("My message here")

Make sure the System.Windows.Forms assembly is referenced your project.

Ilia Jerebtsov