Link to home
Start Free TrialLog in
Avatar of addicktz
addicktz

asked on

How do i code stuff for when the X button is clicked?

I want to stop threads when the X is clicked, how would I go about doing this?
SOLUTION
Avatar of cyberdevil67
cyberdevil67

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cyberdevil67
cyberdevil67

Actually

The best thing to do would be to call the Dispose() method, this will do a garbage collection as you don't need to keep a record of anything then.