Make form full screen

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

    #1

    Make form full screen

    Hi
    Is there a way to open a form at maximum size? That is, as if the user had
    clicked the maximise button.
    Thanks
    Vayse


  • Miro

    #2
    Re: Make form full screen

    fMain = New frmMain
    fMain.WindowSta te = FormWindowState .Maximized
    fMain.Show()


    ? Not sure if thats what you were asking for.

    M.

    "Vayse" <vvvwrote in message news:eeHXtVEIHH A.1240@TK2MSFTN GP03.phx.gbl...
    Hi
    Is there a way to open a form at maximum size? That is, as if the user had
    clicked the maximise button.
    Thanks
    Vayse
    >

    Comment

    • Vayse

      #3
      Re: Make form full screen

      Thats it, thanks.

      "Miro" <mironagy@golde n.netwrote in message
      news:uFtUJNFIHH A.4068@TK2MSFTN GP03.phx.gbl...
      fMain = New frmMain
      fMain.WindowSta te = FormWindowState .Maximized
      fMain.Show()
      >
      >
      ? Not sure if thats what you were asking for.
      >
      M.
      >
      "Vayse" <vvvwrote in message
      news:eeHXtVEIHH A.1240@TK2MSFTN GP03.phx.gbl...
      >Hi
      >Is there a way to open a form at maximum size? That is, as if the user
      >had clicked the maximise button.
      >Thanks
      >Vayse
      >>
      >
      >

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Make form full screen

        "Vayse" <vvvschrieb:
        Is there a way to open a form at maximum size? That is, as if the user had
        clicked the maximise button.
        Set the form's 'WindowState' property to 'Maximized' at design time.

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

        Comment

        • Miro

          #5
          Re: Make form full screen

          You can also set the properties on the form itself to always show maximized.
          See the "WindowStat e" property.

          I have had an instance of this that it did not create the form "Maximized"
          during runtime. That is why i do it the 'coding' way instead.

          Miro


          "Vayse" <vvvwrote in message
          news:%23o7VM3FI HHA.1248@TK2MSF TNGP03.phx.gbl. ..
          Thats it, thanks.
          >
          "Miro" <mironagy@golde n.netwrote in message
          news:uFtUJNFIHH A.4068@TK2MSFTN GP03.phx.gbl...
          > fMain = New frmMain
          > fMain.WindowSta te = FormWindowState .Maximized
          > fMain.Show()
          >>
          >>
          >? Not sure if thats what you were asking for.
          >>
          >M.
          >>
          >"Vayse" <vvvwrote in message
          >news:eeHXtVEIH HA.1240@TK2MSFT NGP03.phx.gbl.. .
          >>Hi
          >>Is there a way to open a form at maximum size? That is, as if the user
          >>had clicked the maximise button.
          >>Thanks
          >>Vayse
          >>>
          >>
          >>
          >
          >

          Comment

          Working...