Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Anyone know how I might cause a form or message box to pop-up when a user hits a button? I'd like the form or box to contain a graphic file (and an OK to close). THANKS
  • *Experts*
Posted

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,

you'll need to make a form and show it by using the ShowDialog()

method.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • 2 weeks later...
Posted

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

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...