Select to view content in your preferred language

finding equivalent command to vba's listindex for arcgis add-in combobox in .NET?

1953
1
05-31-2013 07:38 AM
maxsteinbrenner
Emerging Contributor
In researching on the internet it seems the vb.net equivalent to vba's ListIndex should be SelectedIndex.

However this does not seem to be a property of the combobox in ArcGIS when the combobox is created as an add-in?

Anyone find a way around this outside of rebuilding the combobox in a form to gain all the vb.net funcionality? I'd really like to keep it a simple add-in as that is all I need for everything other than this...

Any help would be greatly appreciated!

thanks,

max
0 Kudos
1 Reply
RichardMoussopo
Frequent Contributor
I've been searching for the same thing, apparently, the comboBox as addin does not seem to work as usual as on a windows form (suh as "SelectedItem", SelectedIndex, SelectedValue, etc.).
So, my work around it, was to create a form and Add a comboBox on a form instead of having it as an addin.
Not really convenient but that is a work around!

[ATTACH=CONFIG]32620[/ATTACH]        [ATTACH=CONFIG]32621[/ATTACH]
0 Kudos