user556396
user556396

Reputation: 597

C# -- C++ Intellisense textbox

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

Upvotes: 1

Views: 3759

Answers (3)

AShelly
AShelly

Reputation: 35580

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++.

Upvotes: 1

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)

Upvotes: 0

Jake Pearson
Jake Pearson

Reputation: 27727

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.

Upvotes: 1

Related Questions