Click to See Complete Forum and Search --> : Asynchronous forms


redspider
March 14th, 2007, 09:18 AM
When i open Form2 from Form1 i cannot access Form1 with out closing Form2
How can i over come this, Asynchronous forms maybe ?

This is the code im useing to open Form2


Form2 form2 = new Form2();
form2.ShowDialog();

Shuja Ali
March 14th, 2007, 09:36 AM
ShowDialog means the Form that you are displaying will have the focus and everything else (Forms) in the application will have to wait for this form to get closed.

You should use Show() Method instead of ShowDialog.

Form2 form2 = new Form2();
form2.Show();