1

Is there a way to make a textbox control display C++ intelisense just like it would in Visual Studios?

user556396
  • 597
  • 3
  • 12
  • 26

3 Answers3

1

I assume you are talking about embedding a control in your own app. You could look at Actipro SyntaxEditor. It will color the C++ right out of the box. If you want intelliprompt/sense you will have supply a parser. They have stuff to help you get started.

Jake Pearson
  • 27,069
  • 12
  • 75
  • 95
1

See This Question and this 'DIY Intellisense' Code Project from the top answer. That's in C#, but the same set of controls is accessable through C++.

Community
  • 1
  • 1
AShelly
  • 34,686
  • 15
  • 91
  • 152
0

I gather you are talking about an AutoComplete popup, not actual intellisense.

(Auto-complete image)

To do this, set the AutoCompleteMode of the textbox to Suggest (or SuggestAppend) and choose the appropriate AutoCompleteSource

combDogBreeds.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
combDogBreeds.AutoCompleteSource = AutoCompleteSource.ListItems;

string[] validDogBreeds = new[] {"Bull Mastiff", "Bulldog", "Golden Retriever"};
combDogBreeds.Items.AddRange(validDogBreeds);

Or, in the designer:

(Auto Complete in designer)

BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283