The Esri Community
Services & Programs
GeoNet Resource Hub
to create and rate content, and to follow, bookmark, and share content with other members.
Listen to document events with button add-in
Discussion created by
on Feb 15, 2011
on Feb 16, 2011 by ethoms
Show 0 Likes
Within the container of a button add-in, how do I make use of the "Add Event Wiring for New and Open Documents" snippet? All I have right now is the default Button1.vb that is created by the wizard. What next?
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Feb 16, 2011 10:27 AM
Well, maybe there is a way to listen to document events within only a button in your add-in, but I discovered that I could simply create an add-in that uses a button AND an application extension (duh!). The stub code for the extension lays the rest out pretty clearly. Be sure to click 'auto load' - or put autoLoad="true" in the <Extension> element in the config file - in order to have the code loaded (and the event handlers set up) each time you open a document.
Show 0 Likes
Retrieving data ...
Slow query on SDE 9.3 spatial view
Custom basemap spatial reference incompatible error 4.9
Authorization and de-authorization
Strange behaviour when updating a Graphic