Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have created two forms , and when i submit the first form the second form is displaying as a popup window.

i want to display the second form in the place of firstform.
Posted
Comments
Sergey Alexandrovich Kryukov 25-Sep-11 12:13pm    
Tag it: WPF, Forms, APS.NET, what?! What is "submit" a form.
--SA

1 solution

On click of submit button of FirstForm use the following code

SecondForm objSecondForm = new SecondForm();
objSecondForm.Left = This.Left;
objSecondForm.Top = This.Top;
This.Hide(); //This is used for FirstForm
objSecondForm.Show();
 
Share this answer
 
Comments
Ramesh. bandapalli 25-Sep-11 10:04am    
Than Q
I have tried , this is ok.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900