Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart10-Mar-04 9:57
protectorHeath Stewart10-Mar-04 9:57 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 21:40
Eric Marchesin10-Mar-04 21:40 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart11-Mar-04 2:58
protectorHeath Stewart11-Mar-04 2:58 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin11-Mar-04 22:56
Eric Marchesin11-Mar-04 22:56 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart12-Mar-04 3:05
protectorHeath Stewart12-Mar-04 3:05 
Generalraise event in another form Pin
laptop_0110-Mar-04 3:13
laptop_0110-Mar-04 3:13 
GeneralRe: raise event in another form Pin
John Fisher10-Mar-04 3:52
John Fisher10-Mar-04 3:52 
General.Net windows forms problem in c# Pin
libpcap200110-Mar-04 1:07
libpcap200110-Mar-04 1:07 
Hi,
I am getting problem in the navigation of windows forms.
I have 2 buttons in a form clicking on which it will open two different forms Form1 and Form2 but it is not closing the previous windows. I got some success using the following code:

private void Btn1_Click(object sender, System.EventArgs e)
{
ParentForm.Hide();
Form fm1 = new Form1();
fm1.ShowDialog();
}

private void Btn2_Click(object sender, System.EventArgs e)
{
ParentForm.Hide();
Form fm2 = new Form2();
fm2.ShowDialog();
}

but again ParentForm.Hide() only hides the other form and eating out valuable resources.
Is there any better method so that I can close the previous Form when I call another Form.Actually I am a novice so please help me.
Thanks in advance


Libpcap2001
GeneralRe: .Net windows forms problem in c# Pin
Dave Kreskowiak10-Mar-04 1:22
mveDave Kreskowiak10-Mar-04 1:22 
GeneralRe: .Net windows forms problem in c# Pin
LongRange.Shooter10-Mar-04 3:28
LongRange.Shooter10-Mar-04 3:28 
GeneralExchage server 5.0 Pin
pushpi10-Mar-04 1:04
pushpi10-Mar-04 1:04 
GeneralRe: Exchage server 5.0 Pin
Corinna John10-Mar-04 3:13
Corinna John10-Mar-04 3:13 
GeneralCrystal Reports (9) Sorting hierarchy Pin
Mr. Labenche9-Mar-04 23:18
Mr. Labenche9-Mar-04 23:18 
GeneralRe: Crystal Reports (9) Sorting hierarchy Pin
Heath Stewart10-Mar-04 6:18
protectorHeath Stewart10-Mar-04 6:18 
Generalmultimedia files Pin
m_ramses9-Mar-04 22:50
m_ramses9-Mar-04 22:50 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 3:13
Mazdak10-Mar-04 3:13 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:14
protectorHeath Stewart10-Mar-04 6:14 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 6:22
Mazdak10-Mar-04 6:22 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:24
protectorHeath Stewart10-Mar-04 6:24 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:22
protectorHeath Stewart10-Mar-04 6:22 
GeneralCreating new worksheet dynamically Pin
Member 6705319-Mar-04 20:05
Member 6705319-Mar-04 20:05 
GeneralAsyncronous callback to only a specific client. Pin
Blue_Aqua9-Mar-04 19:36
Blue_Aqua9-Mar-04 19:36 
GeneralRe: Asyncronous callback to only a specific client. Pin
Corinna John9-Mar-04 20:43
Corinna John9-Mar-04 20:43 
GeneralRe: Lots of free tutorials on C sharp Pin
Christian Graus14-Mar-04 14:58
protectorChristian Graus14-Mar-04 14:58 
Generalfuntion look-ahead Pin
sleeping child9-Mar-04 16:53
sleeping child9-Mar-04 16:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.