Wrox Programmer Forums
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 11th, 2004, 07:55 PM
Authorized User
 
Join Date: Oct 2004
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old October 11th, 2004, 11:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

See if this helps:

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

J
 
Old October 12th, 2004, 12:08 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 12th, 2004, 01:01 AM
Authorized User
 
Join Date: Oct 2004
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

tnx guys tats addtl reff site for me :)

 
Old October 12th, 2004, 12:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
subforms are not showing up bjcountry Access 2 March 22nd, 2008 08:39 AM
FCKeditor not showing dofield BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 November 24th, 2007 05:20 AM
showing windows forms in Internet Explorer amirmunir .NET Framework 1.x 1 June 12th, 2006 09:17 PM
variables not showing nikolaosk BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 July 25th, 2003 03:13 AM





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