• 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?
0
dbbishop
Asked:
dbbishop
1 Solution
 
surajgupthaCommented:
That should be sufficient. But i always do a form.Dispose() and a form = null just to be sure :P)
0

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