Results 1 to 3 of 3

Thread: Control of form size

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Posts
    17

    Question Control of form size

    I have created some forms that have a min size and max size. This was working fine when the forms were run as SDI. But now when I run them as child forms in MDI they no longer restrict the form sizing.

    Is their a way to correct this ?

    Thanks in advance.

  2. #2
    Hyperactive Member scuzymoto's Avatar
    Join Date
    Aug 1999
    Location
    Washington State
    Posts
    316
    I ran into this same problem and ended up having to do the following...

    In the form resize event I placed the following code...

    Code:
    dim formminimumwidth as int32
    dim formminimumheight as int32
    
    formminimumwidth = 'your minimum width
    formminimumheight = 'your minimum height
    
    if form.width < formminimumwidth then
       form.width = formminimumwidth
    end if
    if form.height < formminimumheight then
       form.height = formminimumheight
    end if
    SCUZ

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Posts
    17
    That's exactly how I controlled the form sizing in VB 6. Geeze, I was hoping that VB 7 would have resolved all these issues.

    Oh well, maybe in a later release ....


    Thanks for the help.

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