how to open Main,Mid,Child Form?
-
hello i got little problem okay u now see the main form i click button it opens another form lets says its form2 in form2 there is also button than open form3 in form3 there is close button when i click on it it close both form2 and 3 i want only to close form3 and let form2 opened? how can i do this? im using Dim something As new form2 something.show somebody help me plz thanks
-
hello i got little problem okay u now see the main form i click button it opens another form lets says its form2 in form2 there is also button than open form3 in form3 there is close button when i click on it it close both form2 and 3 i want only to close form3 and let form2 opened? how can i do this? im using Dim something As new form2 something.show somebody help me plz thanks
hi samerali, i don get your problem. with form1, form2 n form3 as u describe, this code works for me the way u want. assume each form has a button1: '//in form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NewChild As New Form2() 'Display the new form. NewChild.Show() End Sub '//form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NewChild As New Form3() 'Display the new form. NewChild.Show() End Sub '//form3 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() End Sub :rose::rose: