I am trying to browse File geodatabase using common dialog box and open the feature dataset and then feature class in arcengine9.31 but unable to do it can any one help me
Private Sub OpenDialog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenDialog.Click Dim openFileDialog As System.Windows.Forms.OpenFileDialog = New System.Windows.Forms.OpenFileDialog openFileDialog.InitialDirectory = "c:\" openFileDialog.Filter = "File GBD (*.GDB)|*.GDB" openFileDialog.FilterIndex = 2 openFileDialog.RestoreDirectory = True openFileDialog.Multiselect = False If openFileDialog.ShowDialog = System.Windows.Forms.DialogResult.OK Then
A file geodatabase is a folder that contains many files that make up the database. You can't browse to a folder using a file browser; you need to use a folder browser. Or just use the standard IGxDialog used by the ArcGIS Desktop applications.
Thank you very much for replaying,i am trying arcengine,i created a form which will will export shape file to feature class (FileGDB---->Dataset----->Featureclass),can you please provide any code
Use the search box at the top of the page. There is also a link to the archived forums where you can also search. There is also a sample for using the IGxDialog in the developer help.