Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Running application in different Window Resolutions

Posted on 2002-06-14
14
Medium Priority
?
194 Views
Last Modified: 2010-05-02
Hi,

I have created a an application in Vb and the whole application is designed in 800X600 resolution mode.

To my dismay, my designing goes haywire when the user runs the application in 640X480 or 1024 X 768 mode.

I have tried some code from PlanetSourceCode but that is not working very effectively.

Please help me in two ways:
1. What should I do to run my application in all possible modes ??

2. What is the best way to follow for my future applications ??

Thanks.
0
Comment
Question by:vikassethi
  • 5
  • 3
  • 3
  • +3
14 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7078980
I could understand your problem with 640x480 but why in 1024...?
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 900 total points
ID: 7079096
The best way to develop an application is to define your minimum audience and go from there.  If your audience is 640x480 users, then develop for that; if your audience is mixed, start by developing for the least common denominator then decide whether you want the screen to look different for different resolutions.

Most good applications will not change the screen in different modes because it caused confusion among users.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7079135
I think the same as rspahitz, hence my comment that could be after you answer mine.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:vikassethi
ID: 7079859
In 1024 mode the application shrinks itself and there is a lot of empty space left in the right side of the form..
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7080070
Without code to do so, that's impossible!
Of course you would see it smallest but it is the same for all windows of the system.
One possible idea is if you use label controls with autosize property to True and the system is running with small fonts (a terrible idea if end user already use 1024 resolution)
0
 

Author Comment

by:vikassethi
ID: 7080140
That is exactly what is happening...I have not coded even a single statement to resize anything...I have designed the app in 800X600 mode and when I run it in 1024X768 mode the controls and font become small and the application is enlarged towards the right side leaving a beig empty space...
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7081087
Then, not Autosize your labels. There are a bunch of programs out there that explain to end user to not use small fonts or a warning.
0
 

Author Comment

by:vikassethi
ID: 7081525
That is the help I am looking for.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7082929
Also, take the rspahitz's advise regarding to develop your app to fit in 640x480. If not, you have to write the code to rearrange your controls and their sizes every time end user resizes the form of your app.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7084141
One thing that might help is to reorganize the form so that similar controls are located inside frames (possibly with the borderstyle =none.)

After that, it may be practical to disable the form's resize ability (Form borderstyle = fixed single.)  That will prevent the huge empty spaces in the app.

--
The problem with resizing an app according to screen size is that it makes the app inconsistent with everything else on the person's system, thereby making it look less professional (even though you went out of your way to help them out!)
0
 
LVL 1

Expert Comment

by:Form_Glow
ID: 7108982
Why not get the res and resize accordingly?
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7109008
Form_Glow, although that's certainly an option, I usually highly recommend against it because:

If controls are simply resized proportionally (width/height):
* Some controls will not resize the way you would like (such as a comboboxes.)
* Fonts must also be resized, and may not scale correctly, especially if using a font such as the standard MS Sans Serif.
* Resizing fonts will cause an inconsistent interface that will make users think that you have a non-standard application, and will therefore have less credibility in it.
* What do you do about images?  Resizing will often cause pixellation.

If controls are simply relocated (left/top):
* It can cause unwanted gaps between controls.
* Controls may overlap if resized smaller.

For example,
Users running 640x480 mode expect a screen to take up a certain amount of space on the screen.  If the same user switched to 1280x1024 mode, he would expect the app to take up 1/4 the amount of space on the screen.

I think that most people upgrade to higher resolutions to gain more desktop space rather than to see their apps better (for that, they buy bigger monitors.)  However, those who want to see the apps better will enlarge the fonts at the system level...

...so if you want to fix your app, it should probably take the default system font into consideration more than the screen resolution.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7900318
Hi vikassethi,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rspahitz's comment(s) as an answer.

vikassethi, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7978165
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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 …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

579 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