I have a need to know in one of the keypress events, what position the
cursor is in. For example, as I position the cursor and type, I'd like to
know for each key I press where in the string of text in the combobox I am.
I didn't see anyway to do this.
Thanks,
Becker
Bruce Wood - 11 Jan 2005 18:04 GMT
Look at ComboBox.SelectionStart and ComboBox.SelectionLength.
By the way, if you're trying to build an auto-completion combo box, the
kind in which the selection changes as the user types, search for
autocompletion and combo box in this news group. There are several
examples posted here.
Morten Wennevik - 16 Jan 2005 09:09 GMT
Hi Becker,
You may be able to do something with the SelectionStart property.
It should report the position of the last character entered.

Signature
Happy Coding!
Morten Wennevik [C# MVP]
Morten Wennevik - 16 Jan 2005 09:36 GMT
Heh?
Anyone know why this message shows up now when I posted it some time ago
with no changes to the system time?

Signature
Happy Coding!
Morten Wennevik [C# MVP]