I have 3 forms One is master form two other form inherit it and have same contents with some additional functions.
I want through master form Second form should open and through second form third form should open at the same time second form should get closed.
I have thought to have some global object but it give runtime exception "An unhandled exception of type 'System.StackOverflowException' occurred in sysgeo.exe"
If any body have idea please suggest.
Loading
Deepak GoyalPosted Mar 28, 2010, 12:21 PM
I prefer to use Parent and child concept here.
So that I can use same form master form and I can use other child forms to get open in the parent form
like as follows I will write in Form one.
Form2 obj = new Form2 ();
obj.MdiParent = this;
obj.Show();
Cheers,
Deepak
BangaruBabu PuretiPosted Mar 24, 2010, 2:44 AM
if u want to Move from One form to Another
Moving from Form1 To Form2
------------------------------------
Under Button_click(Which is in Form1) U need to write the following code
Form2 f2=new Form2()
f2.Show();
this.Close();
Moving from From2 to Form1
-----------------------------------------
Under Button_click(Which is in Form2) U need to write the following code
Form1 f1=new Form1()
f.show();
this.Close();
I am Expecting Ur Asking This Question. If not Post Ur Question Again In New Thread
Mark as Answered
Sam HobbsPosted Mar 23, 2010, 11:06 PM