ngreenleaf
Programmer
I have a combo box -- call it Combo1. If I backspace over the text in the box until there is nothing and hit Enter the Click event procedure correctly sees Combo1.Value as set to "" (nothing). However, if I do the same and then change focus to another control then Combo1.Value is sometimes "" and sometimes it is the text that was there before I did the backspacing. It depends on which control I change focus to and seems to be very consistent.
I tried the same thing using the Exit event instead of Click and got similar results. Am I using the wrong event? What I want to do is check the contents of the text part of the combo box and do different things accordingly. First, I need to know if this value is <> "" -- actions differ for a "" value and within the "" value as well. I am also tracking the last key typed in the combo box using the Keydown event -- my decisions on what to do depend upon both the contents of the combo box and the last key the user typed.
I tried the same thing using the Exit event instead of Click and got similar results. Am I using the wrong event? What I want to do is check the contents of the text part of the combo box and do different things accordingly. First, I need to know if this value is <> "" -- actions differ for a "" value and within the "" value as well. I am also tracking the last key typed in the combo box using the Keydown event -- my decisions on what to do depend upon both the contents of the combo box and the last key the user typed.