Hiding forms whilst repainting
Posted on 2005-04-11
I have an application which uses three forms, but implements a tab control to give the illusion of being a single-form application. There is a problem when I switch from one form to another using code like this:
'''We are in the form frmFirst
The controls from frmSecond slowly appear over frmFirst and it looks ugly. I have two related questions:
1 How do I switch off screen updates whilst the controls are being drawn
2 The first time the a form is activated it takes several seconds longer. I want to show a title form first when the application starts, and at the same time load the forms into memory but without them showing. Is there a way to do this?
My hunch is that this is easy, but darned if I can find it in the VB help pages.