Guenter Becker Active Member Licensed User Longtime User May 26, 2021 #1 Hello, A) If we populate the combobox with items the first item will be displayed in the textpart. In the situation where an item of the combobox is changed or added I like to force the user to make a new selection in the dropdownlist. To show that nothing is selected I like to "reset" the selecteditem and selected index and to clear the text of the textpart of the combobox. How is that possible? B) I'm not able to see the divider lines between the dropdownlist items. How to set the color? C) How is it possible to set the listitem height of the dropdownlist? B4A Snipped example will be welcome. Thank you.
Hello, A) If we populate the combobox with items the first item will be displayed in the textpart. In the situation where an item of the combobox is changed or added I like to force the user to make a new selection in the dropdownlist. To show that nothing is selected I like to "reset" the selecteditem and selected index and to clear the text of the textpart of the combobox. How is that possible? B) I'm not able to see the divider lines between the dropdownlist items. How to set the color? C) How is it possible to set the listitem height of the dropdownlist? B4A Snipped example will be welcome. Thank you.
josejad Expert Licensed User Longtime User May 26, 2021 #2 Guenter Becker said: How is that possible? Click to expand... You can add always a first item like: "Select an item" and when you change or add new items you can do Code: Copy B4XComboBox1.SelectedIndex = 0 When you want to submit the values, you should check B4XComboBox1.SelectedIndex <> 0, if not, you should show a message: "You need to select an option" I don't know about B) or C) Upvote 0
Guenter Becker said: How is that possible? Click to expand... You can add always a first item like: "Select an item" and when you change or add new items you can do Code: Copy B4XComboBox1.SelectedIndex = 0 When you want to submit the values, you should check B4XComboBox1.SelectedIndex <> 0, if not, you should show a message: "You need to select an option" I don't know about B) or C)