Delay in TextChanged Event of ComboBox
-
I'm trying to change all text entries in a ComboBox to upper case. However, the first time I make a change to the text, the application does not register the changed text. The next time I make a change to the text, it works as specified. In other words, when the textchanged event is called, it converts the actual text to upper case letters. Is there a reason for this and how do I circumvent this problem? Thanks.
-
I'm trying to change all text entries in a ComboBox to upper case. However, the first time I make a change to the text, the application does not register the changed text. The next time I make a change to the text, it works as specified. In other words, when the textchanged event is called, it converts the actual text to upper case letters. Is there a reason for this and how do I circumvent this problem? Thanks.
My question to you is, do you want to convert everything to upper case after or during the user is entering text? If after, listen for the Validated or Validating event, you can convert to upper then. If during, listen for the KeyDown event and modify the text accordingly.