1

I am writing a program with a dialog box that when they click on the map button a shapefile will open. I wrote a program that opened a map document is it the same language as that is. Which is the following :

Dim pDoc As IDocument
Dim pApp As IApplication
Set pDoc = New MxDocument
Set pApp = pDoc.Parent
1

If you want to add a shapefile from a dialog box you can find instructions/code here.

You need to set your ActiveView property in order to add anything to your map:

enter image description here

  • @MichelleCouden if that answers the question, mark it as so please. – Brad Nesom Dec 7 '13 at 2:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.