OK, say i have just executed a single line of code, (no way of putting a check in it) which is gonna take 10 minutes to complete....... ie a database query (lots of wildcards used)....

How would i stop it without CTL ALT DEL end task. Another form maybe, an API call, another small program to that runs and sends a "stop what your doing command"?

any help please.........