I have a straightforward windows application written using VB.Net, Visual Studio 2010 using the Oracle Data Provider.
Sometimes Users issue queries that take a long time to process and would like to cancel the query.
I would like to display a button above a Datagrid that says "Cancel" and when clicked, abort the query and kill the User request with Oracle. TOAD currently uses this functionality but I don't know how they do it.
Any code snippets would be greatly appreciated.