Sub Class_Globals
Private MyForm As Form
Private FormSizeLimitsSet As Boolean
End Sub
Public Sub ShowForm()
'Obviously your form already has to be initialized and ready to be displayed.
MyForm.Show
If Not(FormSizeLimitsSet) Then
'In my case, I just need the form to be able to grow within a range defined by the 1.28 factor.
MyForm.SetWindowSizeLimits(MyForm.WindowWidth, MyForm.WindowHeight, MyForm.WindowWidth * 1.28, MyForm.WindowHeight * 1.28)
FormSizeLimitsSet = True
End If
End Sub