By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

dynamically changing Windows Forms size according to screen resolution?

P: n/a
VMI
How can I change the size of the forms in my Windows application when the
screen resolution the user has is higher than the one I developed the
application in? I have a customer that has a screen resolution of 1600x1200
and I developed the application in a PC with 1024x768 resolution. Is it
possible to increase the forms' sizes accordingly?
Thanks.
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
VMI
I manually resize the windows based on the Screen's working area.
"VMI" <vo******@yahoo.com> wrote in message
news:ej*************@TK2MSFTNGP12.phx.gbl...
How can I change the size of the forms in my Windows application when the
screen resolution the user has is higher than the one I developed the
application in? I have a customer that has a screen resolution of 1600x1200 and I developed the application in a PC with 1024x768 resolution. Is it
possible to increase the forms' sizes accordingly?
Thanks.

Nov 16 '05 #2

P: n/a
It's definitely possible, probable, and even advisable. Are you asking how
to do it?

The easiest method is just set your form's WindowState to Maximized. This
could leave a lot of whitespace on your form though, if your controls don't
adjust size to fill up more of the whitespace also. You can force the size
of controls to adjust whenever the form changes size by tying into the
..Resize event; or by using Panels and setting the proper Anchor and Dock
properties for your controls.

It's *really* hard to give you any definitive answers without knowing
*anything* about your form's layout though...

Thanks,
Michael C., MCDBA
"VMI" <vo******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I manually resize the windows based on the Screen's working area.
"VMI" <vo******@yahoo.com> wrote in message
news:ej*************@TK2MSFTNGP12.phx.gbl...
How can I change the size of the forms in my Windows application when the screen resolution the user has is higher than the one I developed the
application in? I have a customer that has a screen resolution of

1600x1200
and I developed the application in a PC with 1024x768 resolution. Is it
possible to increase the forms' sizes accordingly?
Thanks.


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.