- Override the "OnActivate" method to know when the document window gets activated.

Step-4. Create an instance of the custom document window class and add it to the DocumentWindowCollection using Application.DocumentWindowCollection.AddDocumentWindow.

In the attached sample, the steps to associate a custom document have been commented. AutoCAD 2015 at present becomes unstable if a custom document is associated with the custom document window. This behavior has been logged in our internal database for our engineering team to analyze.

So the attached sample project retrieves the document data by directly accessing the usercontrol for the "InsertSmiley" command to access.

- Override the "OnActivate" method to know when the document window gets activated.

Step-4. Create an instance of the custom document window class and add it to the DocumentWindowCollection using Application.DocumentWindowCollection.AddDocumentWindow.

In the attached sample, the steps to associate a custom document have been commented. AutoCAD 2015 at present becomes unstable if a custom document is associated with the custom document window. This behavior has been logged in our internal database for our engineering team to analyze.

So the attached sample project retrieves the document data by directly accessing the usercontrol for the "InsertSmiley" command to access.