Hello Sérgio,
There is a wonderful example that does exactly what you are asking. In the NI Example Finder, look for the �ActiveX Event Callback for IE.vi.� I�m not sure what ActiveX application you are using (this one is for Internet Explorer), but the principles are the same.
If this example doesn�t help, or if I�m not correctly understanding your issue, please post the software and versions you are using, the applicable portions of your code, and any other information that may help, and I�ll be happy to look further into it.
Have a nice day!
Robert M
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments