S
ShakeDoctor
Many of my forms have lots of controls on them which have to be initialised
when the form is created. The problem is this really slows down the
application, because the forms are created and destroyed every time I want
to show them.
Would it be better to just create all the forms once at the start of the
application (during some 'loading' screen), and then just call the .Show and
..Hide methods on them as and when I need them? This would slow down the
application quite a bit at the start, but at least it would be just a one
off wait for the user.
If I do this, what events are called when the forms are shown and hidden, so
that I can fill in any data in the controls I want before the forms are
shown?
Or is there a better way...
when the form is created. The problem is this really slows down the
application, because the forms are created and destroyed every time I want
to show them.
Would it be better to just create all the forms once at the start of the
application (during some 'loading' screen), and then just call the .Show and
..Hide methods on them as and when I need them? This would slow down the
application quite a bit at the start, but at least it would be just a one
off wait for the user.
If I do this, what events are called when the forms are shown and hidden, so
that I can fill in any data in the controls I want before the forms are
shown?
Or is there a better way...