by Aruna (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 15th July 2004
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
This code moves the command button when mouse moves over it disabling the click of the command button.
API Declarations
(write the code in the mousemove event of the command button.)
a=5000*rnd()
b=5000*rnd()
command1.move(b)
command1.top=a
end sub
Note: U can enter any number instead of 5000.This is just to specify the position of the command button.
No comments have been posted about This code moves the command button when mouse moves over it disabling the click of the command butt. Why not be the first to post a comment about This code moves the command button when mouse moves over it disabling the click of the command butt.