Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 11th, 2004, 07:55 PM
Authorized User
 
Join Date: Oct 2004
Location: , , Philippines.
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

Reply With Quote
  #2 (permalink)  
Old October 11th, 2004, 11:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

See if this helps:

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

J
Reply With Quote
  #3 (permalink)  
Old October 12th, 2004, 12:08 AM
Friend of Wrox
 
Join Date: Feb 2004
Location: Bangalore, Karnataka, India.
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
Reply With Quote
  #4 (permalink)  
Old October 12th, 2004, 01:01 AM
Authorized User
 
Join Date: Oct 2004
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

tnx guys tats addtl reff site for me :)

Reply With Quote
  #5 (permalink)  
Old October 12th, 2004, 12:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:33 AM.


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