|
-
Jul 12th, 2000, 11:00 AM
#1
Thread Starter
New Member
How to have a "OnMouseOver" in VB like in html ?
Thanx your help
-
Jul 12th, 2000, 11:05 AM
#2
-
Jul 12th, 2000, 11:15 AM
#3
Thread Starter
New Member
OK, but you have to make a MouseMove for the form to restore the image, is that right or is there an other way to do that ?
Thanx
-
Jul 12th, 2000, 11:21 AM
#4
Restore what Image? If you what you're trying to do is make Images appear if the Mouse is over a certian Image, you can use this code.
Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Make the other images INVISIBLE when the Mouse moves on the Form
MyOtherImages.Visible = False
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Make the other images VISIBLE when the Mouse moves on this Image
MyOtherImages.Visible = True
End Sub
-
Jul 12th, 2000, 11:25 AM
#5
_______
<?>
'example
'add a lable called label 1 to a form
'paste this in the general declarations
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.BackColor = vbRed
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.BackColor = vbBlack
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
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
|