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:
  1. Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
  2.      
  3.  
  4.         Form2.ShowDialog()
  5.         Me.Close()
  6. End Sub