Solved

Screen.width does not match the width of my DELL INSPIRON 1300 after waking up from system standby / hibernate. Why?

Posted on 2006-07-14
6
324 Views
Last Modified: 2010-04-30
I have always used screen.width and screen.height to set the size of frames within maximised forms within my application. Until now the application has worked well on various DELL and Panasonic laptops. However, DELL have recently changed their entry spec Inspiron laptops which are now fitted with widescreen as standard. On the new laptops my forms and frames are correctly maximised and the correct size when the application is first run. When the system wakes up from hibernation the form is still correctly maximised, however the frame within is much smaller because screen.width is much less than it should be (equal to screen.height - coincidentally? - and more like the width of the old DELL Inspiron standard screen). What's going on here? Big thanks
0
Comment
Question by:SINCO
  • 2
6 Comments
 
LVL 9

Accepted Solution

by:
justchat_1 earned 500 total points
ID: 17117806
Screen streatching is done by the display drivers (which is why the windows boot sceen is still square on many widescreen laptops)

However, A few api calls may you the correct values:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21643972.html?query=widescreen&topics=93
0
 

Author Comment

by:SINCO
ID: 17121889
That's too complicated for me! I think I'll just download the latest display drivers and hope for the best.
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17125991
Give it a try but your problem results from native vb functions not being compatable with the whole widescreen concept...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
message box in access 4 51
Add and format columns in vb6 7 63
pop out of webbrowser1 control vba6 5 25
Copy a range from 1..n excel sheets to one destination sheet 2 56
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question