Can anyone tell me how to change the location of a button from 223 , 831 to 101 , 831when another form loads ? I tried to write the code but there was an error . It said:
Form3.Button8.Location =(101, 831)
| | a vb beginner Tuesday, September 29, 2009 10:29 PM |
Form3.Button8.Location = New Point(101, 831)
You need to set the location by creating a new point. This is required since Button.Location (which comes from Control.Location ), takes a Point.
Reed Copsey, Jr. - http://reedcopsey.com - Edited byReed Copsey, Jr. Tuesday, September 29, 2009 10:36 PMFormatting
- Marked As Answer bya vb beginner Tuesday, September 29, 2009 11:07 PM
-
| | Reed Copsey, Jr. Tuesday, September 29, 2009 10:35 PM |
Form3.Button8.Location = New Point(101, 831)
You need to set the location by creating a new point. This is required since Button.Location (which comes from Control.Location ), takes a Point.
Reed Copsey, Jr. - http://reedcopsey.com - Edited byReed Copsey, Jr. Tuesday, September 29, 2009 10:36 PMFormatting
- Marked As Answer bya vb beginner Tuesday, September 29, 2009 11:07 PM
-
| | Reed Copsey, Jr. Tuesday, September 29, 2009 10:35 PM | It's working. Thanks. | | a vb beginner Tuesday, September 29, 2009 11:07 PM |
|