Anyone have existing C# codes for handling a tool and button within the same Add-in for ArcMap?

2142
2
04-12-2016 07:45 AM
PeterLi1
New Contributor III

Just like the actions from the tools: Identify or Measure on ArcMap, where the user's form pop-up, and the mouse point takes effect and puts the data from Map to the form when mouse button down.

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

Take a look at my post here https://community.esri.com/message/409943#comment-409943 to see if that helps.

It's written in VB.Net, but it shouldn't be difficult to translate. In this add-in, the DrawFeature form has buttons that when clicked, allow you to interact with the map.

DrawFeature.png

0 Kudos
PeterLi1
New Contributor III

Hi Ken, Thanks a lot. I will see how it works on ArcGIS 10.3.1 or later version.

Peter

0 Kudos