Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 135,981 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,289 people online right now. Registration is fast and FREE... Join Now!




make an in mage pop up

 
Reply to this topicStart new topic

make an in mage pop up, how to make an image pop up when you click a button

mifboy
9 Aug, 2007 - 12:52 PM
Post #1

New D.I.C Head
*

Joined: 25 Jun, 2007
Posts: 48


My Contributions
when you do

CODE
label1.text = "hi"


and when you click the button hi comes up how u do it for an image
User is offlineProfile CardPM
+Quote Post

KeyWiz
RE: Make An In Mage Pop Up
9 Aug, 2007 - 07:53 PM
Post #2

D.I.C Regular
Group Icon

Joined: 26 Oct, 2006
Posts: 428


Dream Kudos: 125
My Contributions
Picture1.Picture = LoadPicture("c:\ME.bmp") ' or any legal path
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Make An In Mage Pop Up
9 Aug, 2007 - 09:24 PM
Post #3

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8525
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
QUOTE(KeyWiz @ 9 Aug, 2007 - 08:53 PM) *

Picture1.Picture = LoadPicture("c:\ME.bmp") ' or any legal path


Except I believe he's trying to do it in the form of a message box, but those cant be customized. What you would have to do is create a separate form to act as your "popup", put a picturebox on it, load it with your picture. Then in your button click event add

CODE

'This shows the form Modal,
'no other form can be interacted with until this one is closed.
FormName.Show VbModal


If you dont want the form Modal then do it this way

CODE

'Open the form
FormName.Show
'Set focus to the form
FormName.SetFocus


On the form thats showing your picture, be sure to add a Close button so the user can close it.

Hope this helps smile.gif

Happy Coding!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 10:33AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month