You could also use the SetWindowSizeLimits method: SetWindowSizeLimits(MinWidth As Double, MinHeight As Double, MaxWidth As Double, MaxHeight As Double)
like: MainForm.SetWindowSizeLimits(500, 400, 1200, 800)
That's indeed even better @klaus
Altough, this way I have to specify MaxWidth and MaxHeigth, while I have no real limits there. Could set it to 99999999999 I guess, no biggie.
Would make more sense to me as properties, not as a function. But hey, glad it exists native!