Resizing Displayrectangle

  • Thread starter Thread starter Nader
  • Start date Start date
N

Nader

Hi,
Im writing an Application in C# and am placing controls on a panel.
When placing controls right or below the Displayrectangle, the
Displayrectangle is automatically resized to enclose the new controls.
However when placing new controls above or left of the
displayrectangle, it is not resized to enclose the new controls. One
option would be to move all other controls to the right to make space
on the left but that will work out negatively on performance.
Is there a way to make the Displayrectangle grow and schrink
automatically? Using RightToLeft Layout also didnt work.

thanks
nader
 
Its not the Anchor or Dock property. Tried different achoring, also no
anchoring. It didnt work

nader
 
Back
Top