I have created an addin with a toolbar that contains two comboboxes. Does anyone know how to reset the combobox when a selection is made from the other one. For instance, i select an item in combobox1. The selected item is now showing in combobox1. I now select an item in combobox2. The selected item in combobox2 is now showing, but combobox1 also still shows its previous selected item. I would like combobox1 to reset to the initial state when i select an item from combobox2.
Initial Toolbar State:
After Landscape has been selected:
After Portrait has been selected, i want the landscape11x17 to go back to the initial state:
As you can see it is not.
if Landscape is the first option in your combobox, then you can reset it using comboBox1.selectedIndex = 0
If you do not want anything selected, then use comboBox1.selectedIndex = -1, with comboBox1 the instance name of your ComboBox.
If I am using the addin combo box which inherited the combo, how can i gain access to it's selectedindex property?
Please find a small example of add-in combo box onselchange method at http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/OnSelChange_Method/001v...