Results 1 to 5 of 5

Thread: maximize windows?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    19

    maximize windows?

    Whenever I write programs in VB I have to disable the maximize button because when you press it all the controls stay in their original place and are not redrawn and repositioned after the new window. Is there an easy way to reposition all the controls when a window gets maximized?

  2. #2
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Set the BorderStyle of your form to 1 - Fixed Single
    Luke

  3. #3
    Hyperactive Member phrozeman's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Posts
    442
    You have to write some code for that in the Form_Resize() sub
    When people press maximize your controls resize to screenwidth, or whatever you want

  4. #4
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Originally posted by phrozeman
    You have to write some code for that in the Form_Resize() sub
    Whats the point in that? Why dont you just set the BorderStyle of
    your form??
    Luke

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    19
    Setting borderstyle to 1 just eliminates the maximize button. I want to be able to maximize my program so you have to play with coordinates but how?

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