• 0

[VB6] Executing code onmouseover?


Question

Now, onclick is easy

Private Sub cmdYes_click() ...

but how about a hover/mouseover?

I haven't experimented at all, something which I probably should have done, sorry guys. :laugh: Thanks for any help. I'm tihnking it's probably just something very simple.

Cheers :)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Thanks man! That's awesome... Now I have your attention I'll pick your brains some more :D

I'm a bit of a noob (totally infact) to VB so what does all this mean? Bit by bit if you would :)

Button As Integer, Shift As Integer, X As Single, Y As Single

Button as integer :s

Link to comment
Share on other sites

  • 0

Those are event parameters. You can access them the same as you do with variables.

See this for more information about MouseMove:

http://msdn.microsoft.com/library/default....veXControls.asp

Try this:

Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Debug.Print Button, Shift, X, Y
End Sub

And watch the debug window while you move the mouse over the button.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.