Subject: Showing Forms
Posted By: drachx Post Date: 10/11/2004 7:55:56 PM
Hi guys ,

i have my startup form ,how can i hide it when i called another form and upon closing this form it will unhide the startup form?

or which is better hiding or closing the startup form? and unhiding or loafing it again once the called form is closed?
i need to to this because there will be to many open forms in my taskbar which , im using showdialog,

tnx in advanced

Reply By: katsarosj Reply Date: 10/11/2004 11:19:08 PM
See if this helps:

http://www.devcity.net/net/article.aspx?alias=multipleforms

J
Reply By: pradeep_itguy Reply Date: 10/12/2004 12:08:43 AM
You can Hide the form using "Hide" method of Form variable and you can hide at the place where you are opening the other form. At the closing of form means you can use the "Closing" event and show the Form that you hide earlier.

In my opinion if you have mutiple forms to be loaded then I would recomment you to use the MDI forms or else if it is only 2 or 3 forms you can use Hide and Show method itself.

Between closing and Hiding the forms it is up to you to do that, you can check your app with closing the form and opening the form if you find this is slow or odd then you can hide and show the form.



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa
Reply By: drachx Reply Date: 10/12/2004 1:01:04 AM
tnx guys tats addtl reff site for me

Reply By: katsarosj Reply Date: 10/12/2004 12:05:10 PM
quote:
Originally posted by pradeep_itguy

At the closing of form means you can use the "Closing" event and show the Form that you hide earlier.



One of the problems here is that you have to instantiate the form in order to show it.  This results in multiple forms of same type and the original is still hidden.

J

Go to topic 20561

Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741
Return to index page 740
Return to index page 739
Return to index page 738