Results 1 to 8 of 8

Thread: mouseover

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    medina, OH
    Posts
    125
    how do i make it so when the mouse is over
    a command button the mouse pointer changes,
    and when its off the button it goes back
    to default?
    any ideas?

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Set the button's MousePointer property to whatever cursor you want (at design time.) If you want a custom cursor, set the MousePointer property to 99 and the MouseIcon property to your custom .CUR file.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    medina, OH
    Posts
    125

    thanks

    thanks

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    That will not put the cursor back when you move the mouse away from the Button
    In the parent of the CommandButton put:

    Code:
    'Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Me.MousePointer = 0
    'End Sub
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Jop, as long as the form's and surrounding controls' mouse pointer properties are different from the button's, the cursor WILL change. Try it at see.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  6. #6
    Guest
    In that case, use the Screen object.
    Code:
    Screen.MousePointer = 2

  7. #7
    New Member
    Join Date
    Oct 2000
    Posts
    1

    Lightbulb

    Excellent work, but how would you manage this in vb3 16bit?
    scuba steve

  8. #8
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Its all the same. VB hasn't changed a whole lot in that area for years. Just use the info above and it should work; if not, describe your situation and I'll see what I can do.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

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