Maximize a Form Size

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

    Maximize a Form Size

    I want to maximize a form's size when it is loaded. I have been googling and
    experimenting with what I found but I cannont seem to find the right syntax.
    I have been trying something like the following in the form load event but,
    as I said, I can't get the syntax right?

    System.Windows. Forms.Me = FormWindowState .Maximized


  • Herfried K. Wagner [MVP]

    #2
    Re: Maximize a Form Size

    "Wayne Wengert" <wayneSKIPSPAM@ wengert.org> schrieb:[color=blue]
    >I want to maximize a form's size when it is loaded.[/color]

    \\\
    Me.WindowState = FormWindowState .Maximized
    ///

    Alternatively you can set the property 'WindowState' to 'Maximized' at
    design time.

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

    Comment

    • Wayne Wengert

      #3
      Re: Maximize a Form Size

      Thanks Herfried. That works! I was off on the wrong track!

      Wayne

      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
      news:Oziyr$v1FH A.2540@TK2MSFTN GP09.phx.gbl...[color=blue]
      > "Wayne Wengert" <wayneSKIPSPAM@ wengert.org> schrieb:[color=green]
      >>I want to maximize a form's size when it is loaded.[/color]
      >
      > \\\
      > Me.WindowState = FormWindowState .Maximized
      > ///
      >
      > Alternatively you can set the property 'WindowState' to 'Maximized' at
      > design time.
      >
      > --
      > M S Herfried K. Wagner
      > M V P <URL:http://dotnet.mvps.org/>
      > V B <URL:http://classicvb.org/petition/>[/color]


      Comment

      Working...