G
Guest
Hi,
Here's my code
'in form
WithEvents formReplace As New Form
Private Sub cmdFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdFind.Clic
formReplace.Show(
End Su
'in form
Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Clic
Me.clos
End Su
What happens is on the first time that i click on the button in form 1 (cmdFind), form 2 will appear. after closing form2 and click on the button in form 1 again to show form 2, this error appears: "cannot access a disposed object named 'form1
Any ideas? thanks :
Here's my code
'in form
WithEvents formReplace As New Form
Private Sub cmdFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdFind.Clic
formReplace.Show(
End Su
'in form
Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Clic
Me.clos
End Su
What happens is on the first time that i click on the button in form 1 (cmdFind), form 2 will appear. after closing form2 and click on the button in form 1 again to show form 2, this error appears: "cannot access a disposed object named 'form1
Any ideas? thanks :