Hi everyone, I opened a form using a java script. There is a button on the form that I want to use to close the form. I tried putting this in the Button_Click event:
Me.close() when I do this, I get an error that says that close is not a member of my application.
Then I tried me.unload(). This time I get message that says ‘Public Event Unload(sender As Object, e As System.EventArgs)’ is an event, and cannot be called directly. Use a ‘RaiseEvent’ statement to raise an event.
My question is how do I use a ‘RaiseEvent’ statement? How do I close my form using a button control?
Thanks for any help.
Blade
Me.close() when I do this, I get an error that says that close is not a member of my application.
Then I tried me.unload(). This time I get message that says ‘Public Event Unload(sender As Object, e As System.EventArgs)’ is an event, and cannot be called directly. Use a ‘RaiseEvent’ statement to raise an event.
My question is how do I use a ‘RaiseEvent’ statement? How do I close my form using a button control?
Thanks for any help.
Blade