I need to close a previous form, and open a new form2. This code helps in opening new form but fails to close the old form. Besides, is there a way to use function in form1 at form2? for example, i need to display what hav been selected at the combobox(form1) at form 2.
VB Code:
Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click Form2.ShowDialog() Me.Close() End Sub




Reply With Quote