Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i take a panel in window frame ;when i increase or decrease the size of window the size of panel canot change ; i want to resize both dynamicaly ;please help me
Posted

1 solution

Use the Anchor property to define how a control is automatically resized as its parent control is resized.

Anchoring a control to its parent control ensures that the anchored edges remain in the same position relative to the edges of the parent control when the parent control is resized.

Anchor Property in C#[^]

A CP article on: Working with Anchoring and Docking Properties[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900