Hi all,
Is it possible to use IGxDialog to browse for feature classes / shapefiles from ArcGIS 10 Add-in component? I wanted to migrate my code from a simple VB .net environment to the "ESRI Add-in" framework, but I'am missing IGxDialog functionality. Sample snippets offers Windows.Form for opening shapefiles... What about feature classes in a geodatabase then?
Any ideas and help would be appreciated!
Regards,
Jan
Yes you can use IGXdialog...
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/0015/0015000000qv000000.htm
Ok, the question is: how? I have added references to the MSVB 2008 project (ESRI.ArcGIS.ArcCatalog / ArcCatalogUI / DataSourcesFile and other) and when I write:
Dim pGxDialog As ESRI.ArcGIS.CatalogUI.IGxDialog = New ESRI.ArcGIS.CatalogUI.GxDialog
I get 'Type: ESRI.ArcGIS.CatalogUI.IGxDialog' is not defined'.
What else is wrong?
Regards,
Jan
Ok, the question is: how? I have added references to the MSVB 2008 project (ESRI.ArcGIS.ArcCatalog / ArcCatalogUI / DataSourcesFile and other) and when I write:
Dim pGxDialog As ESRI.ArcGIS.CatalogUI.IGxDialog = New ESRI.ArcGIS.CatalogUI.GxDialog
I get 'Type: ESRI.ArcGIS.CatalogUI.IGxDialog' is not defined'.
What else is wrong?
Regards,
Jan
Make sure you have a reference in your project for Esri.ArcGIS.CatalogUI (not to be confused with Esri.ArcGIS.ArcCatalogUI)