I am trying to do an incremental search in a combobox when it is dropped down and something is typed. For example, if the items collection includes "AABBCC", "ABBCC", "ABCCCC", when I type an A, the first item is highlighted (Selected), when I add a B the highlight moves to the second item (searching for AB), and if I then press a C, highlight thr thrid(searching for ABC)
But when you press the first character, it finds the first match and then fills the textbox portion of the combobox with the entire field of data (AABBCC). If I press an A I want to highlight AABBCC in the list, but keep just A in the text box portion of the control so that I can type more and search further if I want to.
I know this is pretty basic, but for the moment I'm stumped.
BTW, (char) 8 is a backspace and I'm sure that can be done better to. When I tried Keys.Back I got a type mismatch between the Keys enumeration and e.KeyChar which returns a char???
Thanks. I'm getting an error message though, "Invalid Solution File" - was it done in 2003? I'm using 2002. I tried to just paste the code into a new project, but it couldn't find System.Drawing and said I was missing an assembly. Being new to VS, I didn't go any further.