Hi everyone, I came from a VB6 envionment , I am having problems with hiding a form when I am done with it.
I have used some online help and come up with this code to close the frame but it does not seem to work.
I have tried many ways but nothing seems to work except to use the cancel command from the top of the form.
decalration of form:
Dim Form2 As New System.Windows.Forms.Form()
code to hide form:
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Enabled = False
Timer2.Enabled = False
'Form1.Show()
Me.Form2.Close()
End Sub
Thanks
Any suggestions would be helpful
I have used some online help and come up with this code to close the frame but it does not seem to work.
I have tried many ways but nothing seems to work except to use the cancel command from the top of the form.
decalration of form:
Dim Form2 As New System.Windows.Forms.Form()
code to hide form:
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Enabled = False
Timer2.Enabled = False
'Form1.Show()
Me.Form2.Close()
End Sub
Thanks
Any suggestions would be helpful