Plugin events fire multiple times when multiple presentations are opened

  • Thread starter Thread starter sandesh
  • Start date Start date
S

sandesh

Hello,

I am working on developing a powerpoint plugin. I have a plugin button
which on clicking, opens a form. When multiple windows are opened, the
button click event handler is added multiple times and multiple forms
are opened on the button click of any one of the presentation. Please
help me in resolving this issue. I need to fix this ASAP.

Thanks.
 
Sandesh said:
Hello,

I am working on developing a powerpoint plugin. I have a plugin button
which on clicking, opens a form. When multiple windows are opened, the
button click event handler is added multiple times and multiple forms
are opened on the button click of any one of the presentation. Please
help me in resolving this issue. I need to fix this ASAP.

Sandesh,

Since you haven't posted the code that's causing problems, it's hard to suggest
anything useful other than "Find the part that doesn't do what you want it to.
Change it so it does." ;-)

Offhand, you may need to do something in your event handler to iterate the
windows collection each time the event triggers to determine whether the new
window contains a presentation that's already open in another window and skip
invoking the form if so.
 
Back
Top