Possible Duplicate:
C# Working with mutliple Forms
I have two forms in C#. I want to close one form and show other. The code is as follows:
AMBR A = new AMBR();
this.Close();
A.Show();
The current form is my main form. It shows my second form, but than closes both and my program stops. I know another standard approach is to hide the form, but my main form only has a logo and loading bar. It don't need any interaction with the user. When I hide it, after the second form is closed the program remain open (as seen in the task manager) and continues to occupy resources. I want the main form to close and second form to remain open.