On application close method

1273
10
09-19-2017 08:09 AM
DrewD
by
New Contributor III

Hello, I was wondering if there was a way to close an add-in pane when Arcpro is shutdown. As you know Arcpro remembers which tabs/windows were open in the previous session, and I don't want the add-in tab to be available when the application is reopened.

Are there any simple overrides that I could implement?

Alternatively on open would be fine too, I've been trying this.close(); and FrameworkApplication.Panes.ClosePane(this.InstanceID); but can't get them to work

0 Kudos
10 Replies
DrewD
by
New Contributor III

Thank you for the sample, it works for me. I am going to play around with it some more and let you know how it goes Thanks for the help!

0 Kudos