p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   Showing Forms (http://p2p.wrox.com/showthread.php?t=19723)

drachx October 11th, 2004 07:55 PM

Showing Forms
 
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


katsarosj October 11th, 2004 11:19 PM

See if this helps:

http://www.devcity.net/net/article.a...=multipleforms

J

pradeep_itguy October 12th, 2004 12:08 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

drachx October 12th, 2004 01:01 AM

tnx guys tats addtl reff site for me :)


katsarosj October 12th, 2004 12:05 PM

Quote:

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


All times are GMT -4. The time now is 12:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.