Mouse over

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arunbalait
    New Member
    • Feb 2007
    • 164

    Mouse over

    Hi to all

    Anybody give me ideas to implement mouse over or mouse hover effects to controls like label, button, image etc., In VB 6.0

    Thank you
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Originally posted by arunbalait
    Hi to all

    Anybody give me ideas to implement mouse over or mouse hover effects to controls like label, button, image etc., In VB 6.0

    Thank you

    Private sub lblLableName_Mo useMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    'Write your code.....
    end sub

    Comment

    • arunbalait
      New Member
      • Feb 2007
      • 164

      #3
      Ya actually if i move the mosue over that cotrol my code works and if I move my mouse out of that control again the original code hasnt restored.

      If I move my mouse out of that control the code should change.

      Thanx

      Comment

      • hariharanmca
        Top Contributor
        • Dec 2006
        • 1977

        #4
        Originally posted by arunbalait
        Ya actually if i move the mosue over that cotrol my code works and if I move my mouse out of that control again the original code hasnt restored.

        If I move my mouse out of that control the code should change.

        Thanx
        that is not possible in some controls so that you have to use code in other control Mouse move (Form or Frame or…etc) where you placed this control to replace the structure

        Comment

        • balid
          New Member
          • Feb 2007
          • 18

          #5
          Originally posted by arunbalait
          Ya actually if i move the mosue over that cotrol my code works and if I move my mouse out of that control again the original code hasnt restored.

          If I move my mouse out of that control the code should change.

          Thanx
          Have you thought about using a timer to check to see if the mouse is still over the same object? You could code the "mouse move" event of the form or the container that the control is in. I've used the timer version as the user can move the mouse faster then the events can handle some times.

          Just some ideas.

          Comment

          Working...