VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Mouse over function. Moves a command button when mouse moves over the button.

by Bj?rn ?kesson (4 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 5th April 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Mouse over function. Moves a command button when mouse moves over the button.

Rate Mouse over function. Moves a command button when mouse moves over the button.




'Declare the speed of the button to move
Const ButtonSpeed = 40

Private Sub Command1_MouseMove(Button as Integer, Shift as Integer,X as Single,Y as single)

'When mouse moves over command button then move button Up and Right
command1.left = command1.left + ButtonSpeed
command1.top = command1.top - ButtonSpeed
End Sub

Download this snippet    Add to My Saved Code

Mouse over function. Moves a command button when mouse moves over the button. Comments

No comments have been posted about Mouse over function. Moves a command button when mouse moves over the button.. Why not be the first to post a comment about Mouse over function. Moves a command button when mouse moves over the button..

Post your comment

Subject:
Message:
0/1000 characters