Show Invisible Form

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

If you are closing a form and reshowing an invisible form is it better to...

A. Close the current, then reshow the other form

or

B. Reshow the other form and then close the current form.

Does it matter? Is one way better that the other?
Thanks
DS
 
I would do this:

1) Make the other form visible.
2) Close the current form.

I'm always hesitant about closing a form and still having code in that form
run. I just don't like the idea of running that code while the form is also
trying to close itself.

An alternative approach is this (if the current form is a modal form):

1) Make the current form invisible.
2) Make the other form visible.
3) Close the current form.
 
Back
Top