Monday, January 18, 2010

Resize Controls in VB.NET on Form Resize?

How would I automatically have a tab container resize to take up all but 20 pixels of each side of the form when the form resizes and then have a web browser inside the tab container resize to take up the entire container on resize?





Thank you.Resize Controls in VB.NET on Form Resize?
Set the tab container's anchors to all four sides. Do the same for the browser.


The anchors can be found in the Properties pane on the form designer.Resize Controls in VB.NET on Form Resize?
On form resize, do your calculations (40 pixels less than the form width, for example) then resize and position the control (the tab container, in this case).

No comments:

Post a Comment