Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Start form maximized [modified]

Start form maximized [modified]

Scheduled Pinned Locked Moved Windows Forms
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sudany_zool
    wrote on last edited by
    #1

    how can i start a form maximized ? -- modified at 23:58 Tuesday 7th August, 2007

    S T 2 Replies Last reply
    0
    • S sudany_zool

      how can i start a form maximized ? -- modified at 23:58 Tuesday 7th August, 2007

      S Offline
      S Offline
      Stathread
      wrote on last edited by
      #2

      set the window state property on the form to maximized.

      www.codewash.com

      1 Reply Last reply
      0
      • S sudany_zool

        how can i start a form maximized ? -- modified at 23:58 Tuesday 7th August, 2007

        T Offline
        T Offline
        tker
        wrote on last edited by
        #3

        If you don't want to set the form to maximized at design time do it in onLoad event: this.WindowState = FormWindowState.Maximized; Toby

        S 2 Replies Last reply
        0
        • T tker

          If you don't want to set the form to maximized at design time do it in onLoad event: this.WindowState = FormWindowState.Maximized; Toby

          S Offline
          S Offline
          Salman Sheikh
          wrote on last edited by
          #4

          also if you want to force the form to remain in maximized state then write its resize event and do the following if not designmode then me.windowstate = formwindowstate.maximized endif

          Salman Sheikh

          1 Reply Last reply
          0
          • T tker

            If you don't want to set the form to maximized at design time do it in onLoad event: this.WindowState = FormWindowState.Maximized; Toby

            S Offline
            S Offline
            Salman Sheikh
            wrote on last edited by
            #5

            [Pitfall] if you do this (in form load you write windowstate = maximized) and then inherit a from from this form it'll create troubles. so first check if it is in designmode if not Me.DesignMode then me.windowstate = Maximized End if

            Salman Sheikh

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups