Posted 20 years ago by
In sample program, language file is loaded by the following code:
projectPath = Path.GetFullPath(Path.GetDirectoryName(Application.ExecutablePath) + @"\..\..\");
languagePath = projectPath + @"Languages\";
// Load the XML language file
editor.LoadLanguageFromXml(languagePath + "ActiproSoftware.VBDotNet.xml", 0);

We would like to make ActiproSoftware.VBDotNet.xml language file as a resource file and load it when our program runs. Does SyntaxEditor support that? If yes, please tell me which function I can use to do it.


Comments (1)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Yes you can do that... you just need to add the file as an embedded resource in your project and then you can get it using the Assembly.GetManifestResourceStream method. Check that out in the MSDN.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.