473,748 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Display Settings

Is there a way to get the desktop (computer's) display settings (the size of
the window; i.e. 1024 X 768, etc.) when starting a program...chang ing it to
what it needs to be for the length of the program and then resetting it upon
leaving the program?

If so, is there anyone that can tell me how to do it or find out how to do
it?

Thanks
JP
Mar 26 '06 #1
5 8519

"Joe-Paul" <Ha*********@co mcast.net> wrote in message
news:hM******** *************** *******@comcast .com...
Is there a way to get the desktop (computer's) display settings (the size of
the window; i.e. 1024 X 768, etc.) when starting a program...
Try adding the Microsoft SysInfo 1.0 control, and using the WorkArea properties
to get the usable desktop space available.
changing it to what it needs to be for the length of the program and then
resetting it upon leaving the program?


Oops, can't help you there, that would violate the "don't mess with other
people's computer settings" rule.
Mar 27 '06 #2
Joe-Paul wrote:
Is there a way to get the desktop (computer's) display settings (the size of
the window; i.e. 1024 X 768, etc.) when starting a program...
Screen.Width and Screen.Height for the primary monitor only.

To get other monitor sizes, look at the multi monitor API:
http://support.microsoft.com/kb/194578/en-us
changing it to
what it needs to be for the length of the program and then resetting it upon
leaving the program?


This is probably better implemented with DirectX or OpenGL.
Sorry, I cant give any more info about them.

Why does your app require a specific screen res?

--
Dean Earley (de*********@ic ode.co.uk)
i-Catcher Development Team

iCode Systems
Mar 27 '06 #3
I am developing with a setting of 1024 X 768. When I install it on my boss'
computer, he has a setting of about 800 X 600...and the windows don't
fit...have to scroll this way and that to get to see everything. If I
could reset it for my program only when it is running, then there would be
no problem...just wondered if it could be done...(or even should be done)...

thanks.

JP
"Dean Earley" <de*********@ic ode.co.uk> wrote in message
news:44******** *************@n ews.zen.co.uk.. .
Joe-Paul wrote:
Is there a way to get the desktop (computer's) display settings (the size
of the window; i.e. 1024 X 768, etc.) when starting a program...


Screen.Width and Screen.Height for the primary monitor only.

To get other monitor sizes, look at the multi monitor API:
http://support.microsoft.com/kb/194578/en-us
changing it to what it needs to be for the length of the program and then
resetting it upon leaving the program?


This is probably better implemented with DirectX or OpenGL.
Sorry, I cant give any more info about them.

Why does your app require a specific screen res?

--
Dean Earley (de*********@ic ode.co.uk)
i-Catcher Development Team

iCode Systems

Mar 27 '06 #4
You're thinking backwards. As a properly behaved app your app should
reformat itself to accommodate the user's preference in screen resolution,
not the other way around. That said, yes, you can screw up the bosses
machine <g> ... see http://vbnet.mvps.org/code/enums/enumdisplaychange.htm

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.


"Joe-Paul" <Ha*********@co mcast.net> wrote in message
news:Io******** *************** *******@comcast .com...
:I am developing with a setting of 1024 X 768. When I install it on my
boss'
: computer, he has a setting of about 800 X 600...and the windows don't
: fit...have to scroll this way and that to get to see everything. If I
: could reset it for my program only when it is running, then there would be
: no problem...just wondered if it could be done...(or even should be
done)...
:
: thanks.
:
: JP
: "Dean Earley" <de*********@ic ode.co.uk> wrote in message
: news:44******** *************@n ews.zen.co.uk.. .
: > Joe-Paul wrote:
: >> Is there a way to get the desktop (computer's) display settings (the
size
: >> of the window; i.e. 1024 X 768, etc.) when starting a program...
: >
: > Screen.Width and Screen.Height for the primary monitor only.
: >
: > To get other monitor sizes, look at the multi monitor API:
: > http://support.microsoft.com/kb/194578/en-us
: >
: >> changing it to what it needs to be for the length of the program and
then
: >> resetting it upon leaving the program?
: >
: > This is probably better implemented with DirectX or OpenGL.
: > Sorry, I cant give any more info about them.
: >
: > Why does your app require a specific screen res?
: >
: > --
: > Dean Earley (de*********@ic ode.co.uk)
: > i-Catcher Development Team
: >
: > iCode Systems
:
:

Mar 28 '06 #5
Thanks Randy...

Sure don't want to mess up the boss's monitor (not! <g>...

Anyway...thanks for the link...

I understand that my thing is a bit backwards...I should be developing my
app to work properly on other people's PCs...It's just a bit_ _ for me to
do!... Anyway...thanks again for the link... I'm going to try it and hope I
don't mess up his computer too terribly! haha.

Thanks again,
JP
"Randy Birch" <rg************ @mvps.org> wrote in message
news:44******** *************@n ews.astraweb.co m...
You're thinking backwards. As a properly behaved app your app should
reformat itself to accommodate the user's preference in screen resolution,
not the other way around. That said, yes, you can screw up the bosses
machine <g> ... see http://vbnet.mvps.org/code/enums/enumdisplaychange.htm

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.


"Joe-Paul" <Ha*********@co mcast.net> wrote in message
news:Io******** *************** *******@comcast .com...
:I am developing with a setting of 1024 X 768. When I install it on my
boss'
: computer, he has a setting of about 800 X 600...and the windows don't
: fit...have to scroll this way and that to get to see everything. If I
: could reset it for my program only when it is running, then there would
be
: no problem...just wondered if it could be done...(or even should be
done)...
:
: thanks.
:
: JP
: "Dean Earley" <de*********@ic ode.co.uk> wrote in message
: news:44******** *************@n ews.zen.co.uk.. .
: > Joe-Paul wrote:
: >> Is there a way to get the desktop (computer's) display settings (the
size
: >> of the window; i.e. 1024 X 768, etc.) when starting a program...
: >
: > Screen.Width and Screen.Height for the primary monitor only.
: >
: > To get other monitor sizes, look at the multi monitor API:
: > http://support.microsoft.com/kb/194578/en-us
: >
: >> changing it to what it needs to be for the length of the program and
then
: >> resetting it upon leaving the program?
: >
: > This is probably better implemented with DirectX or OpenGL.
: > Sorry, I cant give any more info about them.
: >
: > Why does your app require a specific screen res?
: >
: > --
: > Dean Earley (de*********@ic ode.co.uk)
: > i-Catcher Development Team
: >
: > iCode Systems
:
:

Mar 31 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5235
by: Louise | last post by:
Hi I have written an HTML pages which does not have any colour specifying tags as far I know. When I view this in an Microsoft internet explorer browser it appears with a white background and black text but when I change Windows start menu->settings->control panel ->display -> appearance and change scheme to 'High Contrast Black' the background in the browser changes to black and the text to white. I understand that the windows scheme...
5
452
by: Olli Krollmann | last post by:
hello folks, we have been developing several .NET-based windows forms applications during the last two years. there are two mysterious display problems that we have encountered so far but have been unable to find any information about: 1. distorted fonts. when placing label controls on forms or setting form or grid captions we often notice that the label or title text is stretched out in the left part, displays correctly in the middle...
2
16217
by: Phil Stanton | last post by:
When designing a new form or report, the Default ForeColor is often something like -2147483640 which is the colour of Windows text (possibly black) and the default backColor is -2147483643 (possibly white) Can anyone tell me how to convert these colours to either RGB colours or the Long number used by Access. Black is 0 and White is 16777215 ...
3
1970
by: Karunakararao | last post by:
Hi All DateTime populaing based on regional settings In ASP.NET Application Iam using this Code: Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(HttpContext.Current.Request.UserLanguages); Thread.CurrentThread.CurrentUICulture = new CultureInfo(HttpContext.Current.Request.UserLanguages);
3
7488
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work on her local machine. Everything looks pretty good. OpenLDAP/cygwin works great. PostgreSQL works great. Apache runs. PHP runs. But when I try to connect to my PostgreSQL server using PHPPgAdmin, I
53
5346
by: noahmd | last post by:
Okay, once-upon-a-time I tried to start programming by learning C. At the time I was younger and didn't really understand all that C had to offer. I eventually moved over to Microsoft's Visual Basic. It was nice to be able to design a visual application with no effort (too bad I didn't really learn the ins and outs of programming) Long story short, I want to get back into programming, and Python looks like a good choice for me to...
9
1549
by: mukeshhtrivedi | last post by:
We have MS Access 2000 Application (on Network- file server) and it workd fine as intended. However in one of our Windows XP computer (workstation) in bookd jobs module 10 digit field shows 8 digits only and than we need to scroll with cursor to see last two digits. I have tried to change the display settings of monitor and even I replaced the monitor but still it shows 8 digit only. Is there any other settings for paricular workstaion I...
35
2438
by: nobody | last post by:
I need to pop up a modal JS-based dialog (for some reason can't use popup window, much less so showModalDialog()), and I'd like to imitate the system popup titlebar according to user's desktop settings (classic, XP, Vista). No big deal to make it work, but how do I know the style to display? Any chance to figure out these settings programmatically either on the client (preferrable), or possibly in asp.net from something like Request (not...
6
7599
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
0
8994
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9250
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8247
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.