Windows Develop Bookmark and Share   
 index > Windows Forms General > Can anyone tell me how to change the location of a button from 223 , 831 to 101 , 831 when another form loads ?
 

Can anyone tell me how to change the location of a button from 223 , 831 to 101 , 831 when another form loads ?

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
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
Reed Copsey, Jr.  Tuesday, September 29, 2009 10:35 PM
It's working. Thanks.
a vb beginner  Tuesday, September 29, 2009 11:07 PM

You can use google to search for other answers

Custom Search

More Threads

• Source Control
• Uses Business Objects in Windows Forms App
• fullpath of secondsubnode gets into fullpath of first subnode
• TreeView with CheckBoxes
• resize form based on DataTable
• tree view
• How do you tell if an mdi child is open
• "the path is not of a legal form" error
• Syntax Highlighting stopped working
• Image quality degradation in windows forms controls