How to Automatically Wire Up Event Handlers

How to Automatically Wire Up Event Handlers

Anonymous
Not applicable
464 Views
1 Reply
Message 1 of 2

How to Automatically Wire Up Event Handlers

Anonymous
Not applicable

I would like to automatically wire up the event handlers for my .net assembly when it is loaded. Does anyone know how to do this? For instance, does AutoCAD look for and call a "Loaded" or "Initialized" event when it loads my DLL?

0 Likes
465 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Have your class inherit from IExtensionApplication and put your event wire up code in the Initialize() method.

0 Likes