By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,197 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,197 IT Pros & Developers. It's quick & easy.

Windows Display Settings

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.