Howto use NoEventsPending

R

Rasmus A

I a Com Add-in i wanna use the event NoEventsPending, but if i listen
to the event Visio frezzes up because, it fires the event constantly.
My code is in vb.net and looks like this
''''' visioApplication is WithEvents
Private Sub object_NoEventsPending(ByVal app As Application) _ Handles
visioApplication.NoEventsPending
'My action here
End Sub

Can someone tell me what i have done wrong ?
 
D

David Parker [Visio MVP]

If you use NoEventsPending then you must use a flag to check if you have
already perfome the action.

If DoneAction = False Then
DoneAction = True
do Action
End if
 

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