473,499 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamically changing Windows Forms size according to screen resolution?

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
2 17827
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4388
by: Chris | last post by:
After exhausting my search on the MS website, I can't find a straight answer. I fin dit hard to believe that MS left our something so useful in ASP.NET as screen resolution detection. Problem:...
8
15835
by: touf | last post by:
Hi, I've developped an application on a machine that have 1280,1024 , the forms look ok, WhenI change the resolution to 1024,768 the forms are biggest than the screen. Is there a way to resize...
1
2775
by: Gerry Cafolla | last post by:
Is there a Form Layout Screen in VB.NET so that you can check the screen size against screen resolution(s) There was one in VB6 but I can't seem to find one in ..NET. Thanks, Gerry
7
51373
by: mukeshgupta.WD | last post by:
Hi, i have seen in many web sites, the size of pages are automatically resized according to screen resolution. generally we create web layout for 800x600 but if we view it in1024x768 then the...
5
6173
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
14
48951
by: Seige | last post by:
Ever had headache when you can't resize the background width using CSS: body{ background: url(/images/bg.jpg) ; background-width: 800px; } It won't work, would it? Of course not, it's not even...
0
1182
by: Ashoksinh | last post by:
Hi group, Is any one how can i code my application in vb.net that it will resize its form size according monitor size or screen resolution changes? If any one know please help me! Its urgent.
14
12664
by: malcster2 | last post by:
hello i am putting together a web site that i would like to be virtually identical in all screen resolutions. 99% of the elements have % widths and height, rather than px measurements. so this...
1
1820
by: kumarbhupe | last post by:
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...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.