My.Arcmap.Application Not Recognized

Discussion created by tbradallen on Jan 6, 2011
Latest reply on Apr 14, 2011 by kyleb

I'm trying to use Visual Basic Express to implement the Visual Basic.NET version of the Zoom to Layer add-in sample located here:


I copied and pasted the code into the IDE and activated all the references listed in the import statements.  My problem is that all instances of My.ArcMap.Application  in the code register as errors.  For example, the IDE identifies My.ArcMap.Application in the following statement as an error:

Enabled = My.ArcMap.Application IsNot Nothing 

The error message says, "Arcmap is not a member of My."  At this point, I've exhausted all my ideas for fixing the problem.  I appreciate any help you can provide.