Windows Display Settings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe-Paul

    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


  • Steve Gerrard

    #2
    Re: Windows Display Settings


    "Joe-Paul" <HarvestWind@co mcast.net> wrote in message
    news:hMidncL3Qf TZirrZnZ2dnUVZ_ v6dnZ2d@comcast .com...[color=blue]
    > 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...[/color]

    Try adding the Microsoft SysInfo 1.0 control, and using the WorkArea properties
    to get the usable desktop space available.
    [color=blue]
    > changing it to what it needs to be for the length of the program and then
    > resetting it upon leaving the program?
    >[/color]

    Oops, can't help you there, that would violate the "don't mess with other
    people's computer settings" rule.


    Comment

    • Dean Earley

      #3
      Re: Windows Display Settings

      Joe-Paul wrote:[color=blue]
      > 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...[/color]

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

      To get other monitor sizes, look at the multi monitor API:

      [color=blue]
      > changing it to
      > what it needs to be for the length of the program and then resetting it upon
      > leaving the program?[/color]

      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 (dean.earley@ic ode.co.uk)
      i-Catcher Development Team

      iCode Systems

      Comment

      • Joe-Paul

        #4
        Re: Windows Display Settings

        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" <dean.earley@ic ode.co.uk> wrote in message
        news:4427b17a$0 $668$fa0fcedb@n ews.zen.co.uk.. .[color=blue]
        > Joe-Paul wrote:[color=green]
        >> 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...[/color]
        >
        > 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
        >[color=green]
        >> changing it to what it needs to be for the length of the program and then
        >> resetting it upon leaving the program?[/color]
        >
        > 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 (dean.earley@ic ode.co.uk)
        > i-Catcher Development Team
        >
        > iCode Systems[/color]


        Comment

        • Randy Birch

          #5
          Re: Windows Display Settings

          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


          Please reply to the newsgroups so all can participate.




          "Joe-Paul" <HarvestWind@co mcast.net> wrote in message
          news:IoudnfJBqf i88bXZnZ2dnUVZ_ v2dnZ2d@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" <dean.earley@ic ode.co.uk> wrote in message
          : news:4427b17a$0 $668$fa0fcedb@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 (dean.earley@ic ode.co.uk)
          : > i-Catcher Development Team
          : >
          : > iCode Systems
          :
          :

          Comment

          • Joe-Paul

            #6
            Re: Windows Display Settings

            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" <rgb_removethis @mvps.org> wrote in message
            news:4428d066$0 $8644$c3e8da3@n ews.astraweb.co m...[color=blue]
            > 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" <HarvestWind@co mcast.net> wrote in message
            > news:IoudnfJBqf i88bXZnZ2dnUVZ_ v2dnZ2d@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" <dean.earley@ic ode.co.uk> wrote in message
            > : news:4427b17a$0 $668$fa0fcedb@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 (dean.earley@ic ode.co.uk)
            > : > i-Catcher Development Team
            > : >
            > : > iCode Systems
            > :
            > :
            >[/color]


            Comment

            Working...