I have problem about close()
or dispose()
function with my barcode reader (Windows Embedded Compact 7). In this case I can only hide()
form.
I tried to show Form2
as dialogue but after I clicked the close button (to hide this form and go back to Form1
) It made all of my application close
In Form1 (Main):
Public Sub showForm2()
Dim secForm As New Form2
secForm.ShowDialog()
End Sub
In Form2:
'close button
Private Sub closebt_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles closebt.Click
Me.Hide()
End Sub