resize & keep Winform layout

  • Thread starter Thread starter Sharon
  • Start date Start date
S

Sharon

On VS 2003

I have on a form textbox and 3 buttons , the buttons are aligned and keep
the same line ,

I want the Gui to keep the same ratio when resizing the form

Say 90% textbox and 10% buttons



Is there a way doing it without writing my own "OnResize" event , with just
playing with the Doc & Anchor properties ?



Thank you

Sharon
 
Take a look at the Scale method. It Scales the control and any child
controls to the specified ratio.


Dave
 
You will probably have to manually code the resize event if you cannot get
what you need by using Doc and Anchor. I think those are the only 2 real
layout properties available.
 
Sorry, I read percetages and was thinking scaling. Achoring is probably do
what you want if you have a simple layout.

Dave
 
Back
Top