CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    115

    Question Resizing a Form with Controls in Vb.Net

    Hi !
    Every Body

    I have developed a application in vb.net(2005). I need to resize a form with others controls when I dragging or resizing from size. How to possible please help me.


    Thanking You

    Debasis Bag

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Resizing a Form with Controls in Vb.Net

    Look up Anchor and Dock properties of the controls. By using the combination you can make the controls re-size according to the form re-size.

  3. #3
    Join Date
    Jun 2004
    Location
    NH
    Posts
    678

    Re: Resizing a Form with Controls in Vb.Net

    If dock and anchor, are not enough to achieve the full look, you may want to take a look at the FlowLayoutPanel control, and the TableLayoutPanel.
    Warning, there are alot of bugs in these two controls, so test them out in a dummy project first.
    If you get the look you want, then copy them over into your project.

    Another more customizable, and less bugy way, is to move your controls around, right in the forms "Resize" event.
    Each control should have a "Location" property, which allows you to set the coordinates.


    __

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

Featured