I implemented a minimum form size by like so:
VB Code:
'An excerpt, not everything. Private booResize Private Sub Form_Resize() If booResize Then 'To prevent an infinite loop due to Form_Resize(). If Me.WindowState <> vbMinimized Then booResize = False If Me.Height < 5400 Then Me.Height = 5400 End If If Me.Width < 6150 Then Me.Width = 6150 End If 'blah blah code for controls End If End If 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?




Reply With Quote