Help on button location code

seanvoth

Well-known member
Joined
Aug 5, 2006
Messages
58
Programming Experience
1-3
this is what i want
i want so when i click on
a button it will move to the location i gave it
and then when i clck on it again it move to another location i gave it
VB.NET:
[SIZE=2]
Button1.Location = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] Point(100, 100)
Button1.Location = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] Point(12, 10)
[/SIZE]
:confused:
 
you can use the button's Left and Top properties to move it around, you can set up a number of clicks integer and increase that each time the button's clicked, then in the same event use a select case based on the number of clicks variable to specify new locations
 
Back
Top