How to end Add-In?

271
2
12-10-2012 06:14 PM
InsuHong1
New Contributor
Hi,

I'm developing ArcMap Add-In.

But I have a problem in closing program.

When all processes are completed normally, it's OK.

But when I closing window using 'Application.Exit()' function, (I assigned it 'Cancel' button)

ArcMap just crashed...


What is the problem? Am I miss something?


Insu
Reply
0 Kudos
2 Replies
Corbinde_Bruin
Occasional Contributor II
Are you trying to close ArcMap or just your Add-In? Is your Add-In just a form?
Reply
0 Kudos
InsuHong1
New Contributor
Are you trying to close ArcMap or just your Add-In? Is your Add-In just a form?


I'm trying to close just Add-In.

My add-in has a form, and after get user input using form, form is closed (which has no problem), then certain codes are running.

What I try to do is stop running all codes and return to ArcMap. Just like cancel button in ordinary ArcMap tools.
Reply
0 Kudos