problem when making one form a child and other form parent
-
i've two forms(say A,B), A is parent ,B is child.what i want is to hide A when btn1(in A) clicked and show B,then btn2 clicked (in B) close B and show A . i got the way to A->B , but B->A is the problem. also i would like to know if i set A as the parent of B will it be easy ? to do so how can i set A as the parent of B
-
i've two forms(say A,B), A is parent ,B is child.what i want is to hide A when btn1(in A) clicked and show B,then btn2 clicked (in B) close B and show A . i got the way to A->B , but B->A is the problem. also i would like to know if i set A as the parent of B will it be easy ? to do so how can i set A as the parent of B
Hide Form A. Use
Form.ShowDialog
instead ofForm.Show
to display form B. Just below that line Show Form A.«_Superman_»
-
i've two forms(say A,B), A is parent ,B is child.what i want is to hide A when btn1(in A) clicked and show B,then btn2 clicked (in B) close B and show A . i got the way to A->B , but B->A is the problem. also i would like to know if i set A as the parent of B will it be easy ? to do so how can i set A as the parent of B
Based on that parent/child relationship, you can't do it.
Christian Graus Driven to the arms of OSX by Vista.
-
Based on that parent/child relationship, you can't do it.
Christian Graus Driven to the arms of OSX by Vista.