schmiddor

Get Event in DockableWindow when Closing ArcMap

Discussion created by schmiddor on Oct 30, 2013
Latest reply on Nov 1, 2013 by Hornbydd
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

Outcomes