Widescreen with vs.net...

lidds

Well-known member
Joined
Oct 19, 2004
Messages
122
Programming Experience
Beginner
I have a very frustrating problem, I have just brought a new laptop to use for development as I am currently working away form home a lot and I have brought one with 15.4" widescreen. I thought this would be good for development, unfortunately when I develop my software on a 15.4" sq monitor at work and then open the same project on my laptop it distorts the size of the forms and buttons and layout of some controls. I am using the same screen resolution on both computers, has anyone had this problem and got a solution??

Thanks in advance

Simon
 
lidds, if you have same screen resolution on both a regular monitor (4:3 or 5:4) and a wide (15:9 or 16:9), then one of them is wrongly set up.
For example 1280 horizontal makes at vertical the following table for different displays
4:3 - 960 (1280*960)
5:4 - 1024 (1280*1024)
15:9 - 768 (1280*768)
16:9 - 720 (1280*720)
(there exist others too)

If you don't follow the correct resolution per screen dimension you will get a stretched image if screen is filled with other resolution.
 
I have a very frustrating problem, I have just brought a new laptop to use for development as I am currently working away form home a lot and I have brought one with 15.4" widescreen. I thought this would be good for development, unfortunately when I develop my software on a 15.4" sq monitor at work and then open the same project on my laptop it distorts the size of the forms and buttons and layout of some controls.


Of course it does! Your 15 inch monitor at work probably has a native resolution of 1280*1024. Your laptop 15.4" wide has a native resolution of 1280*800. If you run the same res on both, then you are either running the work monitor in 1280*800, or youre running a non-native res on both, like 1024*768

Because LCD panels are made up of fairly coarse picture elements (on a 1280*1024 native panel there are 1280 pels across and 1024 pels up) if you run a non-native resolution on it, then some pixels are going to become stretched. There is no halfway house with this; a pixel is either stretched or it isnt. If your res is 1024, being rendered on a 1280 screen, then either you get a smaller image (only 1024 of the 1280 pels are used) and black bars appear or 256 of the pixels (1280 minus 1024) are going to be doubled up. Essentially this equates to 1 in every 5 pixels, (256/1280) and a diagonal line 5 pixels wide might look like this:
VB.NET:
#
 #
  ##
    #
     #

See the doubled up pixel in the middle? Thats why your controls and text etc appears distorted. Just run each panel in its native resoltuion (one pel per pixel) and things will appear normal
 
I know what you're talking about... I encountered a problem the other day when I made some quick updates to a piece of software and compiled it.

When I went to the client facility and put it on their screens, the resolution was off. On my office computer, my max resolution was 1024x768 and the client system was 1360x768. The max resolution that the From was allowed to be sized on my office computer was somewhere around 1176x768.

I couldn't figure out how to fix that in any settings for it wouldn't let me use the 1360px width in the "minimum/maximum" sizes. So what I did was complied the application on a system that allowed higher screen resolutions. I didn't quite understand why this was happening but I would be interested in finding out as well.
 
Back
Top