Hi all,
I added a simple SyntaxEditor to a form. In the form_load i added the following code :and i added the following events to the editor
On runtime, when i write the following code
the intelliprompt is displayed but the item "Test" is not displayed, did i forget do add something?
Thanks for your help
I added a simple SyntaxEditor to a form. In the form_load i added the following code :
DotNetProjectResolver resolver = new DotNetProjectResolver();
resolver.CachePath = myCachpath ;
syntaxEditor1.Document.Language = new CSharpSyntaxLanguage();
syntaxEditor1.Dock = DockStyle.Fill;
syntaxEditor1.LineNumberMarginVisible = true;
syntaxEditor1.BracketHighlightingVisible = true;
syntaxEditor1.Document.Outlining.Mode = OutliningMode.Automatic;
void syntaxEditor1_KeyTyping(object sender, KeyTypingEventArgs e)
{
if (e.KeyChar == '.')
{
if (syntaxEditor1.SelectedView.GetCurrentLanguageForContext().IntelliPromptMemberListSupported)
syntaxEditor1.SelectedView.GetCurrentLanguageForContext().ShowIntelliPromptMemberList(((SyntaxEditor)sender));
}
}
private void syntaxEditor1_DocumentSyntaxLanguageLoaded(object sender, SyntaxLanguageEventArgs e)
{
syntaxEditor1.Document.LanguageData = resolver;
resolver.AddExternalReferenceForMSCorLib();
resolver.AddExternalReferenceForSystemAssembly("System");
resolver.AddExternalReferenceForSystemAssembly("System.Data");
resolver.AddExternalReferenceForSystemAssembly("System.Drawing");
resolver.AddAllAssembliesInAppDomainAsExternalReferences();
}
using System;
using System.Collections.Generic;
class Test
{
public static void Main(string[] args)
{
Test t = new
}
}
Thanks for your help