Hello,
I have created a simple ArcMap AddIn, Framework .Net 3.5, with a single button in it.
The click method is this one:
The problem is,
is always null, no matter wich button i search or if i use the guid instead, nothing is returned
Anyone with the same problem, and hopefully, a solution?
This code was working up to 10.1
Thanks
Fra
I have created a simple ArcMap AddIn, Framework .Net 3.5, with a single button in it.
The click method is this one:
Code:
protected override void OnClick()
{
try
{
UID commandID = new UIDClass();
commandID.Value = "esriArcMapUI.ZoomToSelectedCommand";
ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID.Value);
if(comm != null)
comm.Execute();
}
catch
{
}
}
Code:
comm
Anyone with the same problem, and hopefully, a solution?
This code was working up to 10.1
Thanks
Fra