Hi:
In my one form I have a cancel button whcih is supposed to the form when the button is clicked. But its not closing the form. What could be possible reasons. I am using VS2008.Net3.5
The code is:
Private Sub cbCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbCancel.Click
callingTextBox = Nothing
txtNumber.Text = Nothing
CapsInfo.setActiveForm(callingForm)
Hide()---I also tried Mybase.Hide() and MyBase.Close()
callingForm.Refresh()
callingForm.Show()
End Sub
Thanks in advance
Ripon
In my one form I have a cancel button whcih is supposed to the form when the button is clicked. But its not closing the form. What could be possible reasons. I am using VS2008.Net3.5
The code is:
Private Sub cbCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbCancel.Click
callingTextBox = Nothing
txtNumber.Text = Nothing
CapsInfo.setActiveForm(callingForm)
Hide()---I also tried Mybase.Hide() and MyBase.Close()
callingForm.Refresh()
callingForm.Show()
End Sub
Thanks in advance
Ripon