-
October 28th, 2009, 07:06 AM
#1
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
-
October 28th, 2009, 12:32 PM
#2
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.
-
October 28th, 2009, 06:01 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|