views:

286

answers:

2

I have panel control. More controls are in panel.I set the dock property for panel as 'fill' .The panel are resized based on screen resolution. but the controls remains same.The controls in the panel are not resized based on screen solution.

i have more labels and panels and text-boxs and button in the same page.

How to set the dock property to resize all controls in page based on screen resolution?

Thanks for any help

+1  A: 

Use the Anchor property and anchor the control to all 4 sides.

ho1
A: 

In addition to setting the Dock property of the container Panel, you also have to set the Anchor or Dock properties of controls within the Panel. Usually, adding a TableLayoutPanel, FlowLayoutPanel, or even another Panel will help when you have multiple controls on a Form.

AMissico