CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: frmMain

  1. #1
    Join Date
    Sep 2000
    Posts
    200

    frmMain

    Why does the frmMain fill the WHOLE screen whether the max button is clicked or not? Which property controls this? I want the frame to be approx half the size of the screen. This is the way it was when the ap wizard made it. What have I done to change that?

    Thanks for any help.
    John


  2. #2
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493

    Re: frmMain

    Make sure the WindowState property of the form is set to "Normal" instead of "Maximized".

    Kris
    Software Engineer
    Phoenix,AZ
    Kris
    Software Engineer
    Phoenix, AZ USA

  3. #3
    Join Date
    Sep 2000
    Posts
    200

    Re: frmMain

    Kris, thanks but it is set to normal. (?)

    John


  4. #4
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: frmMain

    If its not the Min/max buttons or window state then something is setting the Left,Top, WIdth and Height properties. Check the Form_Load, Form_Activate or Form_Resize events

    John G

  5. #5
    Join Date
    Sep 2000
    Posts
    200

    Re: frmMain

    John,

    YOU ARE THE WINNER! You were exactly correct. Thanks a bunch!

    John R.


  6. #6
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    222

    Re: frmMain

    If everyone would make it so worth trying to find the answer as you do, answering would be a lot more fun!!!

    ----------------
    You can contact me directly at [email protected]
    Hey, and... don't forget your parsley cause you can't eat your dog after having stolen him from some animal shelter and having drowned him in the Atlantic Ocean.
    Teamwork Software - Stuff That Does Something

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

Featured