Results 1 to 4 of 4

Thread: Button

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55
    how to make button picture changing when mouse is over and changing back when not?
    i tried mousemove event but it's not good because it's makes the button blink at every move of mouse over it and i couldn't make the button restore it's original picture once mouse is not on button anymore.

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633

    All you need is an "If" Statement!

    Hello Bruce Lee!

    I love watching you as a kid.

    Getting to the point, Inorder not to make it blink, you should put an "IF Statment" in the Command1_MouseMove event to verify if the picture you loaded has already been there.

    Next, you should place similar codes on to the Form_MouseMove event loading the original picture.
    Chemically Formulated As:
    Dr. Nitro

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55
    thanks

    but how do i write the if statement?

  4. #4
    Guest
    Code:
    If Command1.Picture = Picture1.Picture Then
        ' The Picture is already loaded
    Else
        ' The Picture is not loaded
    End If

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