Results 1 to 5 of 5

Thread: [2005] Changing the location of a control

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    [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?

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142

    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]

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    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.

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    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.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    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
  •  



Click Here to Expand Forum to Full Width