how can i write a code for any caption for example,if i want5 to click on ';no';,thn the no button keeps on moving in the whole form.i.e.the pointer doest get hold of it.Code 4 n e caption in VB if i want to click on ';no';,thn the no button keeps on moving without gettng hold of c
If I understand the question, you want to move the button around so it's impossible to click on it. What you want to do is track the mouse pointer location. Then write a conditional something like:
If mouse.left - button.left %26lt; 10 pixels or mouse.top - button.top %26lt; 10 then
mouse.left = random number
mouse.top = another random number
end if
That way if the mouse gets within 10 pixels of the button it moves. Use a random number generator to get the randoms.
For mouse location it might be X and Y coordinates instead of left and top
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment