Sorry, I don't follow you.
If you get the StateChanged event when the user closes the paletteset, then that's telling you it was closed.
You have to look at the event arguments to tell what state changed.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009
http://www.acadxtabs.com
Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm
wrote in message news:5985112@discussion.autodesk.com...
About that:
State Changed fires off anytime you dock or undock, as well as when you close the palette. Like so...
Dock (state hide, state unhide) fires 2 times
Undock (state hide, state unhide) fires 2 times
close (state hide) fires once
Other than those states (e, event args variable) there is no difference between the event arguments (sender or event args) that tell me it has been closed for good.
Why do I care you ask? Because when the user closes the form, I want to unload the entire program (remove all the event handlers for good, remove the data from memory etc.) If the user docs and undocs, I don't want to be removing all that stuff, because it takes some time to reload it (especially with large projects full of data).
So anywhere else I can look?
Thanks
jvj