Maybe deleting the add-in instance isn't really the way to go. So if anyone knows how you can just kill the c# code, let me know.

Link to previous post for new members.
http://www.daniweb.com/forums/thread199975.html

The best thing to do would be, if the cancel button is clicked on a form. Make the Connect class stop(Connect is the main class).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.