Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

Please help!

share|improve this question

1 Answer 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

share|improve this answer
    
Thank You so much!! –  Michelle Couden Dec 6 '13 at 17:10
    
@MichelleCouden if that answers the question, mark it as so please. –  Brad Nesom Dec 7 '13 at 2:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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