Results 1 to 5 of 5

Thread: OnMouseOver

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    8
    How to have a "OnMouseOver" in VB like in html ?

    Thanx your help

  2. #2
    Guest
    It's the MouseMove event

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    8
    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

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

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

    <?>

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



Click Here to Expand Forum to Full Width