Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

combobox selected item c#

int comboBox_selectedIndex = comboBoxName.SelectedIndex; //item index
string comboBox_selectedContent = comboBoxName.SelectedItem; //item name
// Unselected combo box returns null. Be careful to catch errors.
 
PREVIOUS NEXT
Tagged: #combobox #selected #item
ADD COMMENT
Topic
Name
1+3 =