-
Change Resolution Temporarily
Hi All
I have an application written in 1024 x 768 resolution.
I have some users with 800 X 600 and als0 few with 640 X 480 (!!)
I read many articles on forums to change resolution thru VB.
I am considering 2 options:
1) When user runs myvb.exe , I want to change their screen resolution to 1024 X 768 temporarily. When they exit the app., I want to change it back to their original resolution. Will this need a restart ?
2) Detect the user's resolution, and adjust the size of my forms to resize and fit on the their screen.
What is the best way of doing this? and How?
Thanks.
-
Option 2 is much better. I recommend designing your forms at the smallest resolution you intend to support: it's much easier to enlarge controls at runtime than to shrink them. Then either add code to the Form_Resize event to resize the form's controls, or purchase one of the many commercial resize controls available.
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Hi Phil
Thanks for the reply.
Since I have aleady designed the app for 1024 X 768. It barely fits the screen 800 X 600 res.
When you resize your form, is their any way to resize all controls on the form automatically and proportionally?
Also, if I have to go for option 1, is there any best way of doing that?
Thanks
vbdude
-
As I mentioned, there are numerous third-party tools that claim to automatically resize controls proportionally. If you can't make the form fit 800 by 600 manually, though, I doubt that a control will be able to do so automatically. ;-)
For option 1, try http://www.google.com/search?q=vb+ch...lay+resolution . For what it's worth, I would not use any program (other than maybe a video game) that changed my display resolution without my explicit permission.
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
I have found some code that works but , then monitors update frequence is set to the lowest value. In my case 60Hz. There must be a way to control this??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|