Hi Rizky,
I use this Code to open the .dspx file and it works well.
The shape files are at the same folder as the .dspx file?
Thomas
I use this Code to open the .dspx file and it works well.
The shape files are at the same folder as the .dspx file?
Dim dlg = New OpenFileDialog()
dlg.Filter = AppManager1.SerializationManager.OpenDialogFilterText
If dlg.ShowDialog(Me) <> DialogResult.OK Then
Return
End If
Try
'use the AppManager.SerializationManager to open the project
Me.Cursor = Cursors.WaitCursor
AppManager1.SerializationManager.OpenProject(dlg.FileName)
Catch generatedExceptionName As IOException
MessageBox.Show(Me, "Could not open the specified map file" + dlg.FileName, "Error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
Catch generatedExceptionName As XmlException
MessageBox.Show(Me, "Failed to read the specified map file" + dlg.FileName, "Error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
End Try
I hope this helpsThomas