Programmatically Maximize screen

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Qm9iQWNoZ2lsbA==?=

    Programmatically Maximize screen

    I give my user a button to change the properties of the size property of
    maximize screen size. How can I programmaticall y cause the maximize screen
    function to happen after changing the property so the new max screen property
    will be realized? Right now I have to tell the user to unmaximize the screen
    and remaximize the screen to have the property take effect. :o(

    Thanks!

    Bob
  • Herfried K. Wagner [MVP]

    #2
    Re: Programmaticall y Maximize screen

    "BobAchgill " <BobAchgill@dis cussions.micros oft.comschrieb:
    >I give my user a button to change the properties of the size property of
    maximize screen size. How can I programmaticall y cause the maximize
    screen
    function
    I am not sure if I understand your question. You can set the form's
    'WindowState' property to maximize a form. However, which "screen" do you
    want to maximize?

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

    Comment

    • =?Utf-8?B?Qm9iQWNoZ2lsbA==?=

      #3
      Re: Programmaticall y Maximize screen

      I am only using the default Form1.

      OK. I tried this...
      Me.WindowState = FormWindowState .Normal
      Me.WindowState = FormWindowState .Maximized

      I had to do the normal 1st followed by the max to get my new property for
      max screen size to take effect. Going back to normal then back to Max
      visually is not really very clean way to do it because it causes the Form to
      bounce around while it is changing back to normal then back to max.

      Is there a way just to cause the already max screen to refresh using my new
      max screen size without going back to Normal and back again to Max?

      Almost there!

      Thank you!

      Bob

      "Herfried K. Wagner [MVP]" wrote:
      "BobAchgill " <BobAchgill@dis cussions.micros oft.comschrieb:
      I give my user a button to change the properties of the size property of
      maximize screen size. How can I programmaticall y cause the maximize
      screen
      function
      >
      I am not sure if I understand your question. You can set the form's
      'WindowState' property to maximize a form. However, which "screen" do you
      want to maximize?
      >
      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
      >
      >

      Comment

      • Mythran

        #4
        Re: Programmaticall y Maximize screen



        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
        news:OO1VHj9bIH A.5400@TK2MSFTN GP03.phx.gbl...
        "BobAchgill " <BobAchgill@dis cussions.micros oft.comschrieb:
        >>I give my user a button to change the properties of the size property of
        >maximize screen size. How can I programmaticall y cause the maximize
        >screen
        >function
        >
        I am not sure if I understand your question. You can set the form's
        'WindowState' property to maximize a form. However, which "screen" do you
        want to maximize?
        >
        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
        Hmm, if you can maximize a form/screen, Herfried, can you show me how to
        maximize a monitor from 17" to 32"?

        :P

        Mythran


        Comment

        Working...