Manually set index of selected AutoComplete Item?

Aug 24, 2013 at 11:57 PM
Edited Aug 24, 2013 at 11:58 PM
Hi there,

I'm currently trying to give my AutoComplete List a little Memory, just like in Visual Studio. So if I have for example this list:


and I choose and accept the second item, "sinc" I want that when the user the next time types a "s", the list automatically selects "sinc" and not "sin", although its above "sinc". So that the list "remembers" the users choices.

I already implemented everything to achieve this, I only have to change the Starting-Selection when the first char is entered and triggers the AutoComplete List. I tried to do so by using

scintilla1.AutoComplete.SelectedIndex = myIndex

but this doesn't work at all. How can I change the selected item then?