combobox with autocomplete, set cursor to end of text

annef

Newcomer
Joined
Mar 31, 2009
Messages
1
Hi,
I have a combo box witg autocompleteSource as ListItems, AutoCompleteMode as Suggest.
I have a number of items in my list such as
'1.1'
'1.1.1'
'1.1.2'
When I try and type in 1.1.1, it matches on the 1.1 and then puts the cursor at the beginning of the text which then wipes out the .1 I type in next.
I have tried putting
Me.SelectionStart = Me.Text.Length
in OnSelectedIndexChanged but that did not work.
Using SendKeys was a disaster as it out into an endless loop.

Any suggestions on how to fix this?
Thanks,
 
Is there any other code attached to the form or combobax that might be interfering with the autocomplete? Just tried duplicating your problem on my PC and it worked as expected for all the AutoCompleteModes.
 
Back
Top