AnsweredAssumed Answered

vb.net arcobjects select a layer

Question asked by littleleaf on Oct 13, 2014
Latest reply on Oct 26, 2014 by littleleaf

Hello everybody,

 

I am using Get Selected Feature Layer In Contents View by following the sample code from ESRI:

ArcObjects 10 .NET SDK Help

 

But sometimes there is no layer selected, which cause error in the application.

 

I tried to find the way to select a layer through arcobjects (as in the following picture), but no luck.

 

nnnnnnnnnnnnnnnnnnnnn.jpg

 

Anybody has any advice on this?

 

I am using arcmap and arcobjects 10.2.2 and vb.net arcmap add-in.

 

Thanks in advance.

Outcomes