John said:
How can I develop a screen resolution independent winform app in vb.net?
(1) Handle the Form's Layout event and put control-positioning code
therein.
Remember that each "container" control gets its /own/ Layout event; the
Form doesn't have to do it all, any more.
or
(2) Override the OnLayout method and do the same thing.
This is a better alternative if you're creating a "base" Form from which
you intend to inherit /other/ forms. If you go this way, remember to
MyBase.OnLayout() at the end of your routine.
or
(3) Use the Anchor and Dock properties on each Control to get them to
move and resize themselves as the user resizes the window.
Personally, I favour either of the first two, because I've had problems
where VB "forgets" about all the stuff I've set up with properties
(especially when working with inherited Forms).
/Always/ "build small, allow for more".
Design at 800x600 (or whatever /minimum/ resolution you intend to
support) but allow the form to resize to use anything larger.
HTH,
Phill W.