.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DocumentActivated got trigged more than once

2 REPLIES 2
Reply
Message 1 of 3
wesbird
178 Views, 2 Replies

DocumentActivated got trigged more than once

Hi,
As my previous post: http://discussion.autodesk.com/thread.jspa?threadID=524751
I added a documentCollection.DocumentActivated in my palette function. The problem I have now is, it got trigged 4 time when I swich from doc A to doc B. It is no harm for my application now. Is this a bug? or should I handle it with special way?


Thank you,

Wes

AutoCAD 2006, VS 2003, Windows 2003 Server
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: wesbird

Its a bug in your code. You are adding the
handler to the event source more than once.
That's the only way that can happen.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5416533@discussion.autodesk.com...
Hi,
As my previous post: http://discussion.autodesk.com/thread.jspa?threadID=524751
I added a documentCollection.DocumentActivated in my palette function. The problem I have now is, it got trigged 4 time when I swich from doc A to doc B. It is no harm for my application now. Is this a bug? or should I handle it with special way?


Thank you,

Wes

AutoCAD 2006, VS 2003, Windows 2003 Server
Message 3 of 3
wesbird
in reply to: wesbird

Yes, Tony are right. The reason is there are 4 tabs in my Palette. But there is no way I can add DocumentActivated event handler at PaletteSet level. if correct, I have to live with it.



Thank you


Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost