Results 1 to 12 of 12

Thread: RESOLVED - Resize/repos controls with API form min width/height

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    RESOLVED - Resize/repos controls with API form min width/height

    I implemented a minimum form size by like so:

    VB Code:
    1. 'An excerpt, not everything.
    2. Private booResize
    3.  
    4. Private Sub Form_Resize()
    5.  
    6.    If booResize Then    'To prevent an infinite loop due to Form_Resize().
    7.       If Me.WindowState <> vbMinimized Then
    8.          booResize = False
    9.          If Me.Height < 5400 Then
    10.             Me.Height = 5400
    11.          End If
    12.          If Me.Width < 6150 Then
    13.             Me.Width = 6150
    14.          End If
    15.          'blah blah code for controls
    16.       End If
    17.    End If
    18. End Sub

    Problem is, you can still drag the border to less than the minimum. And that causes a flicker. The effect I wanted was something similar to Yahoo chat windows, wherein you can't drag into the minimum. Can someone pls help me and give me code, especially if its API?
    Last edited by leinad31; May 3rd, 2003 at 04:34 AM.

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