while iam working with MDI form containing child forms when iam opening child forms it works fine and iam closing child form using X button again iam opening same form then i got exception :Cannot access a disposed how can i resolve it.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 19, 2015, 1:18 PM
This can be done by handling the MDI child's FormClosing event as follows:
The form will still close, rather than hide, if it's closed for reasons other than user interaction.