Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Location method

Status
Not open for further replies.

keizersoz

Programmer
Apr 22, 2004
67
0
0
BE
I want to make a program in vb.net, that contains a form and a button. And whenever the user approaches the button with the cursor, the location of the button is changed. So that the user never manages to click on the button. The program is a fake harddisk format.

Questions:

1) Which event should I use for the button? I used the click event, but I want the button to move before the user manages to click it!

2)What are the boundaries of the location method? I mean the smallest coordinate is (0,0)top left, now what's the maximum coordinate? I tried Location.X.MaxValue,Location.Y.MaxValue, but it doesn't work?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top