473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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...changing 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 8501

"Joe-Paul" <Ha*********@comcast.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*********@icode.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*********@icode.co.uk> wrote in message
news:44*********************@news.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*********@icode.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*********@comcast.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*********@icode.co.uk> wrote in message
: news:44*********************@news.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*********@icode.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*********************@news.astraweb.com...
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*********@comcast.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*********@icode.co.uk> wrote in message
: news:44*********************@news.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*********@icode.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
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...
5
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...
2
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...
3
by: Karunakararao | last post by:
Hi All DateTime populaing based on regional settings In ASP.NET Application Iam using this Code: Thread.CurrentThread.CurrentCulture =...
3
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...
53
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...
9
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...
35
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...
6
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.