D
Davis
Hi, I have a main form which loads another form. I was wondering how to
dispose of the second form. I have some code below is this correct? Does the
dispose method have to be called after the form has exited.
Private Sub button_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles form2.Click
Dim frm As New frmScan
frm.Show()
frm.Dispose()
End Sub
dispose of the second form. I have some code below is this correct? Does the
dispose method have to be called after the form has exited.
Private Sub button_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles form2.Click
Dim frm As New frmScan
frm.Show()
frm.Dispose()
End Sub