-
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.
-
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
-
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.