|
Thread: how
-
Jun 19th, 2000, 05:10 AM
#1
Thread Starter
Lively Member
How do you make a picture that you click on make a message box come up and then when you click ok it will close the program?????????????????
Timbudtwo
I have no life, only one with computers.
VB 6.0 Enterprise Edition
[hr]
-
Jun 19th, 2000, 05:13 AM
#2
_______
picture
put your picture in a picture box or image control
in the click event put your msg
msgbox "Sorry, it's closing time"
unload me
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 19th, 2000, 05:14 AM
#3
You want to make a MessageBox come up when you click on a Picture? Use this code.
Put it in the Click event of the PictureBox.
Code:
Private Sub Picture1_Click()
RV = MsgBox("Press OK to end", vbOKOnly + vbExclamation, "MyProg")
End
End Sub
-
Jun 19th, 2000, 05:18 AM
#4
Thread Starter
Lively Member
this one too
can you put a picture in a message box?
Timbudtwo
I have no life, only one with computers.
VB 6.0 Enterprise Edition
[hr]
-
Jun 19th, 2000, 06:01 AM
#5
Addicted Member
Make your own
i dont think so, but you can make your own Message box, just add a form, and resize it, and then change the property ShowInTaskBar to False, then add any pics you want in it, and a command button and in the event Click for the command button add this word:
End
thats it, but how to show this for, let us say it has the name Form2, then in the Click event of the picture in the main for add the following line:
Form2.show 1
That's it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|