I'm using a combox as droptdown element to show the user some possible values. The user is able to write a new value into the combobox. One action of the combobox is to trigger something after the index of the selected combobox has changed. My problem is, that the event is triggered if i change the index with may preassigned value. But if the user type in a new value the event does not be triggered. With a separate button i check the combobox index.
How is it possible to trigger also an event if a new value was inserted?
Combobobox SelectedIndexChanged does not work correct
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Combobobox SelectedIndexChanged does not work correct
Okay i find out that i have to use the TextUpdate event. Is it possible to insert a delay for that action, so i have a change to type in more than one character?
Re: Combobobox SelectedIndexChanged does not work correct
The ComboBox is not designed to do what you are trying to do. You can use the key events to capture each character and take custom actions or just use the CB as designed and use the tab key to accept the input.
Here is one way to do what you are trying to do. (see attachment)
Here is one way to do what you are trying to do. (see attachment)
- Attachments
-
- Test-CBAppend2.psf
- (46.21 KiB) Downloaded 112 times