• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Cleanup when closing a form.

I have a form that is using asynchronous ADO. I want to know what steps I need to take if I have a query running asynchronously and the user tries to close the form before the asynchronous operation completes. Can I just close the connection in the FormClosing event, or is there some other cleanup I should do?
1 Solution
That should be sufficient. But i always do a form.Dispose() and a form = null just to be sure :P)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now