autoscale

R

RobcPettit

Hi Ive created a usercontrol containing a graph and label. What
setting do I use so when I maximise the window, the control auto
scales also.
Regards Robert
 
N

Nicholas Paldino [.NET/C# MVP]

Robert,

Well, for the controls on the user control, you will want to set the
Dock property of the individual control so that the size of the controls
expands/contracts with the resizing of the container (you can set which
sides you want to expand/contract). Then, when you place your user control
in another container, you want to make sure that its Dock property is set
appropriately.
 
B

Ben Voigt [C++ MVP]

Nicholas Paldino said:
Robert,

Well, for the controls on the user control, you will want to set the
Dock property of the individual control so that the size of the controls
expands/contracts with the resizing of the container (you can set which
sides you want to expand/contract). Then, when you place your user
control in another container, you want to make sure that its Dock property
is set appropriately.

I think Anchor might be better than Dock.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi Ive created a usercontrol containing a graph and label. What
setting do I use so when I maximise the window, the control auto
scales also.
Regards Robert
 
R

RobcPettit

Thankyou both for your replys, I used dock.fill and this worked
perfect.
Regards Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top