Forms Resizing

  • Thread starter Thread starter robin9876
  • Start date Start date
R

robin9876

In .Net v2 when a form is resized is it possible to automatically
resize controls such as panels and datagridviews?
 
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. :)
 
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.
 
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
 
Back
Top