-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: veeru43
Message 1 in Discussion

hi all,
Problem: Is there any way that i can check if the events is already registered 
or not. scenario:     
In the OnConnection and Addin_Load method i am using a method 
RegisterIDEEvents() which registers teh IDE for document events for switching. 
But sometime the events are getting lost. If i again call the funcion in the 
Switching (Document_Activated Events) the events starts firing in the multuples 
of 2. See the code beloe: private void objWindowEvents_WindowActivated(Window 
GotFocusWindow, Window LostFocusWindow)
{
  try
  {
    // Some logic goes here
    RegisterIDEEvents()
  }
 catch(Exception objexp)
  {
    throw objexp;
  }
} 
Even if everthing goes fine also i am calling the RegisterIDEEvents() to be on 
safer side. But each time the document is swithced the event is fired for 
1,2,4,8,1,2,4,8.. a number of times so its a processing overhead of calling 
same evnts 2, 4, 8 tiems.  Is there any way that i can check if the events is 
already registered or not.

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to