DocumentOpened event gets fired twice. Is this a bug?

F

Forrest Liu

Hi, I'm writing a c# application using Visio Drawing Control. I want to
perform some function after a docment is opened. So I put some code in the
DocumentOpened event. Strangely, I found that DocumentOpened get fired twice
each time a document is opened. I wonder if this is a known bug and how to
work around this.

Here is how to reproduce it if you want to: Assuming you already have the
Drawing control in the form. Add a handler to the DocumentOpened event. You
will notice the handler get called twice each time you open a file.
 
M

Mark Nelson [MS]

What event list are you using for DocumentOpened? If you are working at the
Application level, you would get notified any time a document or a stencil
opened. Does your document have a stencil with it?
 

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