Results 1 to 5 of 5

Thread: [RESOLVED] Change the position of a button

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2008
    Posts
    26

    Resolved [RESOLVED] Change the position of a button

    Hi
    How can i change the position of one button in a vb.net form? I tried with
    Me.Button1.Location.X = 200
    Thank you
    Last edited by mariolopes; Sep 24th, 2008 at 11:25 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Change the position of a button

    Moved From The CodeBank

  3. #3
    Addicted Member
    Join Date
    Mar 2008
    Posts
    143

    Re: Change the position of a button

    Try...

    Code:
    Me.Button1.Location = New Point(200, Me.Button1.Location.Y)
    Shut up and eat your banana!

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Change the position of a button

    You should also be able to change the Top and Left properties.
    My usual boring signature: Nothing

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Sep 2008
    Posts
    26

    Re: Change the position of a button

    Problem solved
    Thank you guys
    This forum rocks

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