Introduction - If you have any usage issues, please Google them yourself
The browse dialog allows users to search and select map documents, which are loaded into the MapControl using the LoadMxFile method. The Name of each layer within the MapControl is added to a ComboBox at the same index. When a layers Name is selected in the ComboBox the ILayerFields and IField interfaces are used to loop through the layers fields. The Name of each field is added to a second ComboBox. If the field Name is the same as the IFeatureLayer::DisplayField it is selected in the ComboBox. The DisplayField is the field from which ILayer::TipText is obtained and can be changed by selecting a different field Name from the ComboBox.