Screen resolution on deployment

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    #1

    Screen resolution on deployment

    Could someone please advise how to cope with various screen resolutions
    that are used when an application is deployed to other machines that
    have different screen resolutions than the development machine.

    Should the application be developed in a moderate resolution screen
    (say 800 x 600) and then have the application switch the target machine
    to this mode when running ? If so, how would I do this.

    Or is there a way that the application scales itself to fit the mode of
    the target machine ?

    Thanks in advance

    Regards

    David
  • Ken Tucker [MVP]

    #2
    Re: Screen resolution on deployment

    Hi,

    Controls have a dock and anchor properties to help with form
    resizing.

    http://msdn.microsoft.com/library/de...ingControl.asp

    http://msdn.microsoft.com/library/de...nchortopic.asp

    Ken
    ----------------------
    "David" <groups@orbitco ms.com> wrote in message
    news:O8l4f.1906 7$U51.7958@news-server.bigpond. net.au...[color=blue]
    > Could someone please advise how to cope with various screen resolutions
    > that are used when an application is deployed to other machines that have
    > different screen resolutions than the development machine.
    >
    > Should the application be developed in a moderate resolution screen
    > (say 800 x 600) and then have the application switch the target machine to
    > this mode when running ? If so, how would I do this.
    >
    > Or is there a way that the application scales itself to fit the mode of
    > the target machine ?
    >
    > Thanks in advance
    >
    > Regards
    >
    > David[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Screen resolution on deployment

      "David" <groups@orbitco ms.com> schrieb:[color=blue]
      > Could someone please advise how to cope with various screen resolutions
      > that are used when an application is deployed to other machines that have
      > different screen resolutions than the development machine.
      >
      > Should the application be developed in a moderate resolution screen
      > (say 800 x 600) and then have the application switch the target machine to
      > this mode when running ? If so, how would I do this.[/color]

      It's often a bad idea to change the users's screen resolution
      programmaticall y.
      [color=blue]
      > Or is there a way that the application scales itself to fit the mode of
      > the target machine ?[/color]

      I suggest to use resizable forms. You can use the controls' 'Anchor' and
      'Dock' properties to enable automatic positioning if the form is resized.
      When setting the form's 'WindowState' property to 'Maximized' the form will
      fill the whole desktop/screen. In addition, the form's 'MinimumSize' and
      'MaximumSize' properties can be used to set minimal and maximal bounds of
      the form.

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      • Phill.  W

        #4
        Re: Screen resolution on deployment

        "David" <groups@orbitco ms.com> wrote in message
        news:O8l4f.1906 7$U51.7958@news-server.bigpond. net.au...
        [color=blue]
        > Should the application be developed in a moderate resolution screen
        > (say 800 x 600) ...[/color]

        Yes.
        [color=blue]
        > ... and then have the application switch the target machine to this
        > mode when running ?[/color]

        Absolutely not!
        (unless you're writing an arcade game!).

        You'll annoy your users, who already have /their/ monitors set up
        the way /they/ want them and you can't even guarantee that the
        monitor (or whatever) that they're actually using supports /any/
        given resolution especially with the increase in LCD monitors,
        these days.
        [color=blue]
        > Or is there a way that the application scales itself to fit the mode
        > of the target machine ?[/color]

        Use the Anchor and Dock properties on each Control to take
        advantage of higher resolutions or, if you're developing forms that
        other Developers inherit from, be prepared to cut your own Layout
        code to position things (not entirely sure why, but using Anchoring in
        the base form gave me a /lot/ of grief).

        HTH,
        Phill W.


        Comment

        • Bob Powell [MVP]

          #5
          Re: Screen resolution on deployment

          In addition to the valuable comments made by others on this thread you may
          wish to look into custom layout schemes. The GotDotNet site has quite a bit
          of information on this subject.

          --
          Bob Powell [MVP]
          Visual C#, System.Drawing

          Ramuseco Limited .NET consulting


          Find great Windows Forms articles in Windows Forms Tips and Tricks


          Answer those GDI+ questions with the GDI+ FAQ


          All new articles provide code in C# and VB.NET.
          Subscribe to the RSS feeds provided and never miss a new article.





          "David" <groups@orbitco ms.com> wrote in message
          news:O8l4f.1906 7$U51.7958@news-server.bigpond. net.au...[color=blue]
          > Could someone please advise how to cope with various screen resolutions
          > that are used when an application is deployed to other machines that have
          > different screen resolutions than the development machine.
          >
          > Should the application be developed in a moderate resolution screen
          > (say 800 x 600) and then have the application switch the target machine to
          > this mode when running ? If so, how would I do this.
          >
          > Or is there a way that the application scales itself to fit the mode of
          > the target machine ?
          >
          > Thanks in advance
          >
          > Regards
          >
          > David[/color]


          Comment

          Working...