[2005] Changing the location of a control
Hello, usally when i make programs i encounter many errors in my code, i usally just find ways around them. Why whenever i type something with this in it:
Code:
'the following code Should set the location of thecontrol to 50,50 (50 on the x axis and 50 on the y axis)
thecontrol.location = thecontrol.location(50,50)
or i tried many alternates to this solve this (maybe)
Code:
'heres another way i TRIED
thecontrol.location = (50, 50)
That doesnt work either.
How would i change the location of thecontrol?
Re: [2005] Changing the location of a control
try this ...
Code:
thecontrol.Location = New Point(50, 50)
Re: [2005] Changing the location of a control
Thankyou i actually as you probally can see i posted all these threads right after eachother thinking that they cant be related at all. I figured out the solution to this problem by reading your post on creating a control/picturebox at a certain location.
Re: [2005] Changing the location of a control
If you had a look at the intellisense, you would've seen that the Location property is a Point property, so a Point must be assigned to it.
Re: [2005] Changing the location of a control
Oh i don't uaslly look at the descriptions for now on i will.