Hide a Section of a Form

George Too

Registered User.
Local time
Today, 00:10
Joined
Aug 12, 2002
Messages
198
Hi all,
I want to recreate one of those forms where by pressing a "Advance >>" button a hidden part of the form shows with its controls.
I tried doing it in the footer of the form so that the button just makes that section visible, but I don't get the same result. Then I tried resizing the form through code but it doesn't work either, the form remains at the same height.

Does anyone know how to do it?

Thanks.
 
If you have no problems resizeing your forms via code, then what about putting the additional "advanced" items on another form. Then you could insert it as a subform, and change its visible properties to False. Once the "advanced" button is clicked, the code could trigger the form expansion, and change the subforms properties to visible. I could even see you setting the main forms grow and shrink properties to "yes" then making the subforms height and visibility change with the command button. When the subform grows and collapses, so will the main form.
 
Hi jeremie,

I tried using the subform method you suggested but had problems making the subform to work (I thought it would be a straight forward operation). The way I got it to work was using the InsideHeight property for the main form and setting my controls to visible whenever the button is clicked. It works nicely now.

Thanks for your reply.

Regards,
George
 

Users who are viewing this thread

Back
Top Bottom