Hello
I am new to VB and .NET, can anyone tell me what I am doing wrong? I am using arcmap v10 with MS Visual Studio Express 2008. I just want to save my map document without presenting a dialog box to the user. The code snippet below does not produce an error, but the map document does not get saved either. Thanks
tlh
Dim pMxDoc As IMxDocument = DirectCast(m_app.document, IMxDocument)
Dim pMap As IMap = pMxDoc.FocusMap
Dim pMapDoc As IMapDocument = pMap
Dim mxdPathName As String
mxdPathName = strDefaultWorkspace & "\" & frmWSIn.txtMapDocName.Text
pMapDoc.SaveAs(mxdPathName)