making elements of a window form resizable

  • Thread starter Thread starter Eps
  • Start date Start date
E

Eps

I am developing a program which I plan to release as freeware at some
point. I have decided that the lowest resolution supported will be
1024x768 and have sized everything up so the GUI is usable at this res.

I run my own res at 1280 x 1024 though, is there any way to make the
elements resize themselves at higher resolutions so I am not wasting
space ?. For example I have a rich text box and it would be useful it
this could expand to take up any availiable room.

Any help appreciated.

--
Eps

http://ukcomment.blogspot.com/

A UK political Blog
 
You want to look into the following things in WinForms:

Anchoring
Docking
Panels
Splitters

Basically, you put a group of controls within a panel, and either dock
them or anchor them so that when the Panel changes size, the controls
within it do intelligent things.

Then you put panels within other panels, and dock them so that when the
higher-level panel resizes, the inner panels do intelligent things.

You will want to give the user direct control over some panel sizing,
and for this you add a Splitter.

Then arrange the highest-level panels and splitters within the Form,
dock them appropriately, and you're done.

It's sort of hard to describe without seeing it in action. :)
 
Back
Top