> In .Net v2 when a form is resized is it possible to automatically
> resize controls such as panels and datagridviews?
Several options exist:
- Resize your controls manually by handling the Resize event.
- Use the Anchor and/or Dock properties on your controls to make them
resize and position themselves where you want them to.
MSDN has the documentation for you. :)

Signature
H?vard
robin9876@hotmail.com - 22 Jan 2007 12:42 GMT
I have handled it code on the form resize event, due to the layout of
the form and the options available with Anchor and dock settings.
> > In .Net v2 when a form is resized is it possible to automatically
> > resize controls such as panels and datagridviews?
[quoted text clipped - 5 lines]
>
> MSDN has the documentation for you. :)
Hello robin9876,
>In .Net v2 when a form is resized is it possible to automatically
>resize controls such as panels and datagridviews?
The mechanisms suggested by others in replies to this question are really
those that were commonly used in .NET 1. In .NET 2, several new and
powerful controls have been introduced in the form of the layout
containers. You should have a look at MSDN docs for the FlowLayoutPanel
and the TableLayoutPanel to find out how these work.
Oliver Sturm

Signature
http://www.sturmnet.org/blog