This project is read-only.

Manually set index of selected AutoComplete Item?

Aug 25, 2013 at 12:57 AM
Edited Aug 25, 2013 at 12:58 AM
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:

sin
sinc
sinh

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?

Greetings,
2mQ