.NET

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

DocumentActivated got trigged more than once

71 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
*Tony Tanzillo
Message 2 of 3 (71 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: 347
Registered: ‎12-05-2003
Message 3 of 3 (71 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community