|
-
May 3rd, 2008, 05:50 PM
#1
Thread Starter
Frenzied Member
[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?
-
May 3rd, 2008, 05:55 PM
#2
Re: [2005] Changing the location of a control
try this ...
Code:
thecontrol.Location = New Point(50, 50)
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
May 3rd, 2008, 06:07 PM
#3
Thread Starter
Frenzied Member
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.
-
May 3rd, 2008, 06:33 PM
#4
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.
-
May 4th, 2008, 11:46 AM
#5
Thread Starter
Frenzied Member
Re: [2005] Changing the location of a control
Oh i don't uaslly look at the descriptions for now on i will.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|