Automatic resizing of controls when VB.Net Windows forms is resized

  • Thread starter Thread starter tangokilo
  • Start date Start date
T

tangokilo

Hi,

I believe my questions is a beginners questions and I appreciate your help.

I create controls (mostly in a group box). When user maximizes the form I
want to adjust the sizes of these controls, eg. lisct/combo boxes, text
boxes, etc automatically and accordingly.

How can I do this in Visual Studio 2003 or programatically using VB.Net ?

Many thanks

Thomas
 
Hi TangoKilo,

The most simple is the dock option which is in every control, when you use
it, you will probably also have to use panels and groupboxes. Than also the
splitter becomes very effective.

As an extra you can use the anchors for that when you have small controls on
a panel or groupbox.

I hope this helps?

Cor
 
* "tangokilo said:
I believe my questions is a beginners questions and I appreciate your help.

I create controls (mostly in a group box). When user maximizes the form I
want to adjust the sizes of these controls, eg. lisct/combo boxes, text
boxes, etc automatically and accordingly.

In addition to the other replies: Notice that there are some controls
which cannot be sized in some directions, for example, the combobox
cannot be sized in vertical direction.
 
Back
Top