471,605 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

resize & keep Winform layout



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

Jan 20 '06 #1
3 3440
Take a look at the Scale method. It Scales the control and any child
controls to the specified ratio.
Dave
Jan 20 '06 #2
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.
"Sharon" <Sh*******@hotmail.com> wrote in message
news:uA**************@TK2MSFTNGP14.phx.gbl...


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

Jan 20 '06 #3
Sorry, I read percetages and was thinking scaling. Achoring is probably do
what you want if you have a simple layout.

Dave
Jan 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

40 posts views Thread by Woolly Mittens | last post: by
39 posts views Thread by Zak McGregor | last post: by
3 posts views Thread by John | last post: by
3 posts views Thread by =?Utf-8?B?UiBSZXllcw==?= | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.