Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 July 14th, 2006, 12:37 AM
Registered User
 
Join Date: Jan 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in window form

Dear friends,
I have a little bit problem in windows forms using visual c#.

 I have 3 windows form.1st form has one button & rest have 2 buttons.
task which i wish to perform:-
 When i'll click on button on 1st form i wish to open 2nd form(which i done creating form object then calling Show() or ShowDialog() method). Now i wish that on desktop only 2nd form should appear.
 Similarly; clicking on 2nd form for go to 1st or 3rd only desired form should show.

Any suggestion please.


with regards
Dev
 
Old July 15th, 2006, 09:29 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default


use
this.Hide();

Bijgupt
 
Old July 17th, 2006, 05:05 AM
Registered User
 
Join Date: Jan 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear,
Before posting my query i tried hide method also. It only hide from the desktop, actually it will running in background. when u move from forms to forms there were several forms running in background.

   One of my friend says" We can't close main form. So main form form1 will always running in background." What is your opinion?


With Regards
Dev
 
Old July 26th, 2006, 09:12 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Main form is the object which contains entry point of u'r application or in other words main form is initial object. If any how if it get disposed/dereferenced gc will recaliam memory from all u'r objects.

Bijgupt
 
Old August 1st, 2006, 12:51 AM
Registered User
 
Join Date: Jan 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks dear





Similar Threads
Thread Thread Starter Forum Replies Last Post
find textbox in window form vipinpaliwal1980 VB.NET 2002/2003 Basics 1 April 28th, 2006 08:22 AM
FORM action opens in new window nancy HTML Code Clinic 2 April 7th, 2006 08:16 AM
opening Web form in another window? Thagi ASP.NET 1.x and 2.0 Application Design 2 March 31st, 2006 05:40 AM
calling functions form another window geogomez Javascript How-To 2 November 29th, 2005 07:20 AM
How to print a Window Form in C# Prabhat C# 2 July 3rd, 2004 03:30 AM





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