1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VB.Net - Forms layout

Discussion in 'HTML, Graphics & Programming' started by ~J~, 14 May 2006.

  1. ~J~

    Sgarrista

    Joined: 20 Oct 2003

    Posts: 7,558

    Location: London

    Anyone know a good tip on how to keep form items centred in a form?

    Got a client who has a web-page where the controls are fixed sized, but centred within a DIV.

    Trying to get the same affect in a windows form but can't seem to keep the controls at a fixed size, but central to the screen.

    As an example, the web-based app has a div with a username label and a username textbox. These controls are next to each other, the DIV centred on the browser.

    When I come to do the same on my windows form, I just can't get them in the centre of the form.

    Any ideas?
     
  2. therubble

    Hitman

    Joined: 5 Jan 2004

    Posts: 752

    Location: Norfolk

    You can anchor controls on the form, look into doing this, it will solve your problems.