.NET

Reply
Distinguished Contributor
wesbird
Posts: 359
Registered: ‎12-05-2003
Message 1 of 3 (74 Views)

DocumentActivated got trigged more than once

74 Views, 2 Replies
12-06-2006 07:33 AM
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
Vault Pro 2014, Windows 7 64 bit, AutoCAD (ACA, Map) 2014
*Tony Tanzillo
Message 2 of 3 (74 Views)

Re: DocumentActivated got trigged more than once

12-07-2006 06:16 AM 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
Distinguished Contributor
wesbird
Posts: 359
Registered: ‎12-05-2003
Message 3 of 3 (74 Views)

Re: DocumentActivated got trigged more than once

12-07-2006 08:18 AM 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
Vault Pro 2014, Windows 7 64 bit, AutoCAD (ACA, Map) 2014
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.