Pop up window

housemi

Member
Joined
May 7, 2003
Messages
10
Anyone know how I might cause a form or message box to pop-up when a user hits a button? Id like the form or box to contain a graphic file (and an OK to close). THANKS
 
The MessageBox.Show() method pops up a Windows message
box with a variety of options, although the only options you have
for pictures are the standard Windows ones: error, information,
question, etc. If you want a message box with your own graphic,
youll need to make a form and show it by using the ShowDialog()
method.
 
also, add an OK button to ur form and say Unload Me, that closes the program.

So, the first thing you want to do is have ur first form up. After some event(key press, buttonpress) u want to pop up the form.
what you could do is Hide(form1.hide) the first form, and say form2.Show and on form2 add an OK button that says Unload Me and set the background image to ur graphic file
 
Back
Top