Results 1 to 4 of 4

Thread: Startup Maximized?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216

    Startup Maximized?

    How can I start my main form as maximized as it can be on the screen right when it loads?

    When I try to do it through properties there are only 4 selections and none of them start it up as maximized as it can be on my screen. Any clues?

    Thanks in advance
    Quote Originally Posted by randem
    You think you are confused? Try reading what you wrote...

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: Startup Maximized?

    Originally posted by james14
    How can I start my main form as maximized as it can be on the screen right when it loads?

    When I try to do it through properties there are only 4 selections and none of them start it up as maximized as it can be on my screen. Any clues?

    Thanks in advance
    The simple answer to your question is to include the following code in the form load event:

    VB Code:
    1. Me.WindowState = FormWindowState.Maximized

    However, if you mean you want Full Screen Mode whereby the title bar containing the maximise/minimise/close buttons is not visible then you also have to add:

    VB Code:
    1. me.controlbox=False
    2. Me.text=""
    Last edited by taxes; Jun 13th, 2004 at 05:48 PM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  3. #3
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112
    check the windowstate property of the form...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    Alright thanks guys it worked.
    Quote Originally Posted by randem
    You think you are confused? Try reading what you wrote...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width