I have a simple vb.net code which gets all the layer names present in the ArcMap and displays it in a vb form combobox. My question is if I select a layer name that is present in my combobox it should get me the column headings of attribute table of the selected layer. How can I achieve this?
To access the fields of a layer you need to get a handle on the FeatureClass. It has a property called fields that returns an IFields object. There are worked samples in the API help file.