Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Recognizing screen resolutions with VB

Posted on 1999-07-18
1
Medium Priority
?
122 Views
Last Modified: 2010-04-30
How do i get VB5 to recognize what resolution the computer's screen is set at so that I can change the size of controls etc. to suit?
0
Comment
Question by:ldeutsch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 60 total points
ID: 1525602
screen.width/.height will let you know what dimensions of screen are.

However, general consensus of experts here is that you should *NOT* automatically resize your application as the screen res changes. The user is upping the rez to get more screen real estate and if you automatically scale up this defeats the purpose and frustrates the user. If you *MUST* resize, make it an OPTION not automatic. This gives control to the user and will be better received.

Hard part of scaling up is scaling text on controls. Text scales by points which don't correlate directly to pixels and make it difficult to get good looking screens as res changes. Additionally some text is set by windows automatically (title bars, etc) and you have little or no control over appearance.

My suggestion: Decide on minimum supported rez (640x480, 800x600, etc.) Set all your screens to look good there and leave well enough alone.

M

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses

660 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