Results 1 to 5 of 5

Thread: how

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93
    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]

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    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

  3. #3
    Guest
    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

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93

    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]

  5. #5
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241

    Lightbulb 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
  •  



Click Here to Expand Forum to Full Width