
Correction: Resize form - resize controls
You aren't by any chance assuming that the resizing is automatic? If so, I'm
sorry, but you have to roll your own to resize the controls (and fonts)
relative to your new form size. The very easiest way is to try one of the
many resize ActiveX controls around, some free and some not. But if you want
to do it all yourself, my method is to set up an public array of a UDT for
control dimensions which I fill at form load by iterating through the forms
controls, also saving form dimensions, and then in the resize event change
the size of the controls relative to the change in size of the form. No
doubt someone has a more erudite way. Note that you need to use typeof to
check the control type as some don't have all the dimension properties (or
skip errors).
--
Regards - John Rischmiller.
Quote:
> Correction on previously posted question:
> I have an MDI-application in VB6 and I'm trying to change
> the size of the controls when resizing (not minimizing)
> the window. I've tried to call Refresh in form_resize but
> without result.
> Any help with this is highly appreciated...
> Malin