General information
Category:
Coding, syntax & commands
I have an active X control I would like to disable when the 'oWord' reference is created (VARTYPE=[O]) and enabled when it is released (VARTYPE=[X]).
You can't use BINDEVENT(), but you can use EVENTHANDLER().
You need to implement Word's applicationEvents2 interface in your Word Handler class and use AddObject to add your handler to the form. That way, in the handler's ApplicationEvents2_Quit method, you can do 2 things:
1. Set the form's refrence to Word to .NULL.
2. Refer to "This.Parent" to refer to the form and enable the activeX control or otherwise refresh its controls.
As Naomi suggested, you may find the white papaer and code samples on my web site helpful.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only