Get Event in DockableWindow when Closing ArcMap

1959
1
10-30-2013 03:29 AM
SusannSchmidt
New Contributor III
Hello,

I have a DockableWindow in my ArcMap 10.1, before Closing the Program I want to do some jobs. So in the Constructor of my DockableWindow I registered the Dispose-Event:

public dwThemes()
 {
    InitializeComponent();
    this.Disposed += new EventHandler(dwThemes_Disposed);
...


But the application does not come through the Event-Routine. Is there a better way?

Thanks

EDIT:
Found a Solution: the IDockableWindowDef.OnDestroy() Event
0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor
If you found a solution you should mark you post as solved to tell others there was a solution.
0 Kudos