There is a situation where the PMP handler doesn't call the OnClose or the AfterClose event and I'd like to know if others have seen this and if there is a workaround. I'm using SolidWorks 2013 SP2.
Basically I'm using the DotNetControlsDemo where I've added an OnClose and AfterClose event handler.
Both are called as expected except if I click in a tab of the feature manager. Then the tab's page is displayed and my PMP is lost without firing the OnClose or AfterClose events.
Note that this is different from https://forum.solidworks.com/message/251609#251609 because he was concerned about ESC keystroke handling.
SolidworksApi macros