VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code moves the command button when mouse moves over it disabling the click of the command butt

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.)

Rate This code moves the command button when mouse moves over it disabling the click of the command butt



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.

Download this snippet    Add to My Saved Code

This code moves the command button when mouse moves over it disabling the click of the command butt Comments

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.

Post your comment

Subject:
Message:
0/1000 characters