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
321 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now