How to link the controls of a form to an arcgis map Iapplication

المشرف العام

Administrator
طاقم الإدارة
While writing the code for adding all the layers in arcmap into combobox of a form, I am getting the error: 'Bestaurents.frmRestaurentviewer' does not contain a definition for cmblayer and no extention method 'cmblayer' accepting a first argument of type Bestaurents.frmRestaurentviewe could not be found (are you missing a using directive or an assembly) at last line.

frmRestaurentViewer prestViewer = new frmRestaurentViewer(); prestViewer.Show();

IMxDocument doc = m_application.Document as IMxDocument; IMap pMap = doc.FocusMap; ILayer play = pMap.get_Layer(0); prestViewer.cmblayer.Items.Add(play.Name);

أكثر...
 
أعلى