How to create intellisense from scratch?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pajamas33
    New Member
    • Sep 2010
    • 1

    How to create intellisense from scratch?

    Hi,

    I'm currently working on a project to make a richTextBox that has intellisense (in my case I am making the intellisense for Java, but I'm writing the program in C#). I'm using key triggers (specifically the dot) to get the last word and cross reference that word with a treeList and then populate a listBox.

    Problem: I have gotten everything to work perfectly, but I am not sure how to effectively make it so that the intellisense will recognize user defined identifiers and put the correct intellisense items with that identifier.

    For example:
    Scanner scanInput = new Scanner (System.in);
    int myNumber = scanInput.nextI nt();

    In the above example, my intellisense program would know that the 'nextInt()' method is part of the Scanner class, but I don't know how to make it know that when I put a dot after 'scanInput' that it should display the methods for the Scanner class.
Working...