I am receiving an error telling me that i cannot open an already disposed form.
The strange thing is that the form (which is said to be disposed) is open.
The steps which lead to this error are:
1) Open Main Form
2) Open Form1
3) Close Form1
4) Open Form1
5) Open Form2 from Form1
6) Raise an event in Form1 from Form2
If I edit out the line which raises the event in Form1 - I do not get the error.
So what am I doing wrong with regards to raising the event???
Step 6) The code to raise event is:
Form1's Module code contains:
Public Event EditRecordInserted()
Public Sub RaiseEditRecordInserted()
Form1's load event has:
AddHandler Mod_Edit.EditRecordInserted, AddressOf HandleRecordInserted
And then there's the actual sub which is:
Public Sub HandleRecordInserted()
Any help appreciated - thanks.