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. Visual Basic
  4. Form Autosize

Form Autosize

Scheduled Pinned Locked Moved Visual Basic
question
5 Posts 3 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.
  • W Offline
    W Offline
    WestSideRailways
    wrote on last edited by
    #1

    If i have the following properties enabled.... Form autosize = True Form maxsize = True Form minsize = True Does this mean that my Form will goto the maxsize of the users screensize and not beyond.?

    M D 2 Replies Last reply
    0
    • W WestSideRailways

      If i have the following properties enabled.... Form autosize = True Form maxsize = True Form minsize = True Does this mean that my Form will goto the maxsize of the users screensize and not beyond.?

      M Offline
      M Offline
      MatrixCoder
      wrote on last edited by
      #2

      No, you have to set the WindowState to Full.


      Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.

      D 1 Reply Last reply
      0
      • W WestSideRailways

        If i have the following properties enabled.... Form autosize = True Form maxsize = True Form minsize = True Does this mean that my Form will goto the maxsize of the users screensize and not beyond.?

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        The Form.MaximumSize and Form.MinimumSize properties do not accept a Boolean value, so that code has no meaning. If you want your form to fill the screen all you have to do is set its WindowState property to Maximized:

        myForm.WindowState = WindowState.Maximized
        

        Docs on Form.WindowState[^].

        Dave Kreskowiak Microsoft MVP - Visual Basic

        1 Reply Last reply
        0
        • M MatrixCoder

          No, you have to set the WindowState to Full.


          Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          WindowState has no Full enumeration member, it's WindowState.Maximized.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          M 1 Reply Last reply
          0
          • D Dave Kreskowiak

            WindowState has no Full enumeration member, it's WindowState.Maximized.

            Dave Kreskowiak Microsoft MVP - Visual Basic

            M Offline
            M Offline
            MatrixCoder
            wrote on last edited by
            #5

            Sorry, I'm thinking of the WMP WindowState.


            Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.

            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