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
I hope this solution (drawn from here) will help display all the controls inside the form when the screen resolution changes at the client side:
Use the
Anchor
property and anchor the control to all 4 sides.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.