resize & keep Winform layout

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
 
D

D. Yates

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


Dave
 
C

C.C. \(aka Me\)

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.
 
D

D. Yates

Sorry, I read percetages and was thinking scaling. Achoring is probably do
what you want if you have a simple layout.

Dave
 

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

Top