AnsweredAssumed Answered

New to ArcObjects 10

Question asked by fumble on Jul 23, 2013
Latest reply on Jul 24, 2013 by kenbuja
Having trouble creating custom buttons for 10.0 from 9.3.
I know most of my code will work, but when I run the snippits:
GetMxDocumentFromArcMap & GetActiveVewFromArcMap both return Nothing.

So it's impossible to do anything further when you can't get a valid reference to the MxDoc or Active view.


My previous code used to have:
Private m_application As IApplication
But in 10.0 I get an error with that line and changed it to:
Private m_application As ESRI.ArcGIS.Framework.IApplication

Could somebody post some sample code or sample project to help me get started??

Thanks

Outcomes