M
michael sorens
In a Windows Form application, when a user resizes the window, I typically
want different components in the form to take different actions. For
example, a text box in the middle should grow with the window; a button
panel at the bottom should remain the same height but re-center
horizontally; etc.
What I have settled on as a technique for managing this is to start witha
table container (dock=fill), then by combining rowspans, columnspans, and
absolute vs percentage row/column sizes, I can achieve fine control over
layout when the form is resized. I am just wondering if that is considered
a good approach or if there is a different Best Practice for this?
want different components in the form to take different actions. For
example, a text box in the middle should grow with the window; a button
panel at the bottom should remain the same height but re-center
horizontally; etc.
What I have settled on as a technique for managing this is to start witha
table container (dock=fill), then by combining rowspans, columnspans, and
absolute vs percentage row/column sizes, I can achieve fine control over
layout when the form is resized. I am just wondering if that is considered
a good approach or if there is a different Best Practice for this?