Hey,

I'm trying to find a way to make a sort-of AutoComplete function in my RichTextBox.
I did some searched for AutoComplete but all I found was examples for a one-line textbox where the user only types one word. It only worked for the first word.

In my RTB I can easily have up to 3000 lines of text so those examples don't work for me.

What I'm after exactly is very similar to the VB6 IDE, I don't know what it's called (not intellisense) but I mean the listbox-kind-of-thing that pops up if you type a ".".
For example:
Text1. will give a listbox with all methods, properties etc of Text1.

Only I don't want it to popup when you type "." but I want it to popup just as a normal AutoComplete function does.

For example, the program has the words 'hello', 'hi', 'help' and 'start' in it's 'memory'.
When the user types a "h" in the RTB, I want a listbox to popup near the letter "h" (or if that's too hard maybe just in a fixed place on the form) which lists "hello", "hi", and "help".

Also, as in normal AutoCompletion, the "h" should be extended to "hello" where the bold part is selected.

Can this be done? Are there any examples out there maybe?
It would help already if I knew the name of this behaviour in the VB6 IDE...