How to handling deletion event of objects in current word document

K

Kobe

I want to handling deletion event of objects in current document,such as word
tables and custom ActiveX controls which I create in my word addin.
Because I save the pointers of the objects,I need to set them invalid and dump
memory when the user delete the special tables or the ActiveX controls.
Thanks for everyone!
 
C

Cindy M.

Hi =?Utf-8?B?S29iZQ==?=,
I want to handling deletion event of objects in current document,such as word
tables and custom ActiveX controls which I create in my word addin.
Because I save the pointers of the objects,I need to set them invalid and dump
memory when the user delete the special tables or the ActiveX controls.
Word provides no such events. Closest you can get is the WindowSelectionChange
event. I think you'll need to test whether the objects are set to "null" and, if
they aren't (because they're still present), set them to null explicitly.

Of course, if you're working with .NET, the garbage collection will take care of
the problem for you...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top