|
-
Jun 27th, 2000, 02:04 PM
#1
Thread Starter
Member
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.
-
Jun 27th, 2000, 03:43 PM
#2
Fanatic Member
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
-
Jun 27th, 2000, 06:40 PM
#3
Thread Starter
Member
thanks
but how do i write the if statement?
-
Jun 27th, 2000, 10:15 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|