# AlterNET Studio Support

**URL:** https://forum.alternetsoft.com/c/alternet-studio-support/5.md?page=4

[Latest](https://forum.alternetsoft.com/latest.md) · [Categories](https://forum.alternetsoft.com/categories.md) · [Tags](https://forum.alternetsoft.com/tags.md)

**Page:** 5

---

## [I want to use AlterNET Studio's WPF - Lua Parsing](https://forum.alternetsoft.com/t/i-want-to-use-alternet-studios-wpf-lua-parsing/356)

<div class="topic-metadata">

**Author:** [@donovan](https://forum.alternetsoft.com/u/donovan)\
**Replies:** 1\
**Last updated:** [December 30, 2022, 1:09am UTC](https://forum.alternetsoft.com/t/i-want-to-use-alternet-studios-wpf-lua-parsing/356 "2022-12-30T01:09:02Z")

</div>

Hi, I want to use AlterNET Studio’s WPF - Lua Parsing. The LSP server is running on its own, and I want to connect to this server and use Lua Parsing and Intellisense features. Can you tell me how to use it? Thanks …

---

## [How to not add references with absolute path and make use of SearchPaths](https://forum.alternetsoft.com/t/how-to-not-add-references-with-absolute-path-and-make-use-of-searchpaths/346)

<div class="topic-metadata">

**Author:** [@mgan](https://forum.alternetsoft.com/u/mgan)\
**Replies:** 7\
**Last updated:** [December 20, 2022, 10:42am UTC](https://forum.alternetsoft.com/t/how-to-not-add-references-with-absolute-path-and-make-use-of-searchpaths/346 "2022-12-20T10:42:46Z")

</div>

Using the Studio demo app, if I add my custom control to the Form Designer surface, the references to the assembly containing my custom control and dependent assemblies get automatically added to the reference list. The…

---

## [How to get caret's x,y or rectangle](https://forum.alternetsoft.com/t/how-to-get-carets-x-y-or-rectangle/352)

<div class="topic-metadata">

**Author:** [@p4spares](https://forum.alternetsoft.com/u/p4spares)\
**Replies:** 3\
**Last updated:** [December 6, 2022, 10:58pm UTC](https://forum.alternetsoft.com/t/how-to-get-carets-x-y-or-rectangle/352 "2022-12-06T22:58:05Z")

</div>

hi, i’m trying to find how to get the caret’s position in x,y coordinates because i have to show a window exactly in this place, something similar to code completion but totally custom. i’m pretty sure exists, but i’m n…

---

## [Object of type 'Microsoft.CodeAnalysis.Formatting.FormattingOptions+IndentStyle' cannot be converted to type 'Microsoft.CodeAnalysis.Indentation.IndentationOptions'](https://forum.alternetsoft.com/t/object-of-type-microsoft-codeanalysis-formatting-formattingoptions-indentstyle-cannot-be-converted-to-type-microsoft-codeanalysis-indentation-indentationoptions/339)

<div class="topic-metadata">

**Author:** [@horvath.105](https://forum.alternetsoft.com/u/horvath.105)\
**Replies:** 2\
**Last updated:** [November 23, 2022, 6:01am UTC](https://forum.alternetsoft.com/t/object-of-type-microsoft-codeanalysis-formatting-formattingoptions-indentstyle-cannot-be-converted-to-type-microsoft-codeanalysis-indentation-indentationoptions/339 "2022-11-23T06:01:30Z")

</div>

I am getting this error whenever I enter a newline in the wpf code editor. This is a very high severity issue as it effectively makes the editor non functional. \<PackageReference Include="Alternet.Studio.Editor.Wpf" Ve…

---

## [Adding controls to WinForms form designer using code](https://forum.alternetsoft.com/t/adding-controls-to-winforms-form-designer-using-code/347)

<div class="topic-metadata">

**Author:** [@mgan](https://forum.alternetsoft.com/u/mgan)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 10:21am UTC](https://forum.alternetsoft.com/t/adding-controls-to-winforms-form-designer-using-code/347 "2022-11-21T10:21:51Z")

</div>

Hi, How can I create WinForms controls and inject them unto the design surface of the form designer via code. A demo program will be very much appreciated. Thanks

---

## [EvaluateExpression doesn't seem to like List\<string\> or Linq methods](https://forum.alternetsoft.com/t/evaluateexpression-doesnt-seem-to-like-list-string-or-linq-methods/338)

<div class="topic-metadata">

**Author:** [@anders.beltoft](https://forum.alternetsoft.com/u/anders.beltoft)\
**Replies:** 2\
**Last updated:** [October 25, 2022, 7:44am UTC](https://forum.alternetsoft.com/t/evaluateexpression-doesnt-seem-to-like-list-string-or-linq-methods/338 "2022-10-25T07:44:17Z")

</div>

I have a window with a TextBox (expr) and a TextBlock (output). When I add StringList class as global script item, evaluateexpression always returns null, even if the StringList isn’t referenced in the expression, eg. 2…

---

## [\[NET6\] References/Runtime Assemblies in Roslyn parser?](https://forum.alternetsoft.com/t/net6-references-runtime-assemblies-in-roslyn-parser/337)

<div class="topic-metadata">

**Author:** [@wknauf](https://forum.alternetsoft.com/u/wknauf)\
**Replies:** 2\
**Last updated:** [October 12, 2022, 2:43pm UTC](https://forum.alternetsoft.com/t/net6-references-runtime-assemblies-in-roslyn-parser/337 "2022-10-12T14:43:12Z")

</div>

After a bit of struggle, I understood that for the compilation of custom code, there is a big difference between references to “Runtime assemblies” and “Reference assemblies” ( https://learn.microsoft.com/en-us/dotnet/st…

---

## [Cross threading exception when using Alternet editor in an Excel VSTO addin](https://forum.alternetsoft.com/t/cross-threading-exception-when-using-alternet-editor-in-an-excel-vsto-addin/334)

<div class="topic-metadata">

**Author:** [@DerekDiamond](https://forum.alternetsoft.com/u/DerekDiamond)\
**Replies:** 5\
**Last updated:** [August 31, 2022, 9:55am UTC](https://forum.alternetsoft.com/t/cross-threading-exception-when-using-alternet-editor-in-an-excel-vsto-addin/334 "2022-08-31T09:55:55Z")

</div>

I am trying to use the Alternet SyntaxEdit in a VSTO Excel addin. When used outside the addin all works fine, but hen I call up the edit form in the addin after a few seconds I get a cross threading exception. Here is a…

---

## [Clicking the "Locals" tab just hangs when using tkinter](https://forum.alternetsoft.com/t/clicking-the-locals-tab-just-hangs-when-using-tkinter/324)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 2:11pm UTC](https://forum.alternetsoft.com/t/clicking-the-locals-tab-just-hangs-when-using-tkinter/324 "2022-08-25T14:11:55Z")

</div>

Here’s the repro steps: Install tkinter to the embedded Python folder. Run the Debbuger Integration - Python demo and put the following code: from tkinter import \* ws = Tk() ws.title('PythonGuides') ws.geometry('300x…

---

## [Want Code Completion filtered to only show public instance properties](https://forum.alternetsoft.com/t/want-code-completion-filtered-to-only-show-public-instance-properties/322)

<div class="topic-metadata">

**Author:** [@DanielPerry](https://forum.alternetsoft.com/u/DanielPerry)\
**Replies:** 5\
**Last updated:** [August 23, 2022, 3:36pm UTC](https://forum.alternetsoft.com/t/want-code-completion-filtered-to-only-show-public-instance-properties/322 "2022-08-23T15:36:04Z")

</div>

Hello, I’m trying to filter the CodeCompletion results so that only public properties are exposed via auto completion. I found that I can filter properties via the ListMember.Category.Id, but there is no way to determi…

---

## [How to run matplotlib python script?](https://forum.alternetsoft.com/t/how-to-run-matplotlib-python-script/315)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 18\
**Last updated:** [August 22, 2022, 2:54pm UTC](https://forum.alternetsoft.com/t/how-to-run-matplotlib-python-script/315 "2022-08-22T14:54:21Z")

</div>

Hi, I modified PythonDapDebugger.Wpf.MainWindow.SetupPython() method so that the sample program can recognize the installed Python. When I started the sample program and clicked the Run button, I got the following excep…

---

## [Does the Python debugger support breakpoints set in a different thread?](https://forum.alternetsoft.com/t/does-the-python-debugger-support-breakpoints-set-in-a-different-thread/323)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 2\
**Last updated:** [August 22, 2022, 2:53pm UTC](https://forum.alternetsoft.com/t/does-the-python-debugger-support-breakpoints-set-in-a-different-thread/323 "2022-08-22T14:53:46Z")

</div>

It appears that the answer is no. But I wanted to make sure that it is the case. To reproduce the issue, run the Debbuger Integration - Python demo and put the following code: import time import threading from queue im…

---

## [How do I inject C# object to Python code?](https://forum.alternetsoft.com/t/how-do-i-inject-c-object-to-python-code/316)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 10\
**Last updated:** [August 9, 2022, 3:13pm UTC](https://forum.alternetsoft.com/t/how-do-i-inject-c-object-to-python-code/316 "2022-08-09T15:13:48Z")

</div>

Hi, I have been using Python.net to run a Python script from a C# WPF app. C# code injects necessary C# objects by using “PyScope.Set(variable name, object.ToPython)()” like so: const string Script = "import matplotlib…

---

## [VB WinForms Custom Sub Main not honoured](https://forum.alternetsoft.com/t/vb-winforms-custom-sub-main-not-honoured/302)

<div class="topic-metadata">

**Author:** [@mgan](https://forum.alternetsoft.com/u/mgan)\
**Replies:** 4\
**Last updated:** [August 8, 2022, 5:12am UTC](https://forum.alternetsoft.com/t/vb-winforms-custom-sub-main-not-honoured/302 "2022-08-08T05:12:58Z")

</div>

I wanted a custom Sub Main for a VB WinForms app. I’ve created the VB.Net app (.NET Framework 4.8) with VS2022. Unchecked the “Enable application framework” option of the project. Created the following module: Module…

---

## [Is it possible to add an "Immediate Window" tab to DebuggerPanelsTabControl where Python REPL works?](https://forum.alternetsoft.com/t/is-it-possible-to-add-an-immediate-window-tab-to-debuggerpanelstabcontrol-where-python-repl-works/320)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 2\
**Last updated:** [August 3, 2022, 5:19pm UTC](https://forum.alternetsoft.com/t/is-it-possible-to-add-an-immediate-window-tab-to-debuggerpanelstabcontrol-where-python-repl-works/320 "2022-08-03T17:19:57Z")

</div>

DebuggerPanelsTabControl is nice. But it lacks Python REPL capability. I’m requesting to add an “Immediate Window” tab where the Python REPL is active on it and the user could use it as if it were a real Python command b…

---

## [RoslynDocumentationProvider](https://forum.alternetsoft.com/t/roslyndocumentationprovider/317)

<div class="topic-metadata">

**Author:** [@andreas.m](https://forum.alternetsoft.com/u/andreas.m)\
**Replies:** 3\
**Last updated:** [July 28, 2022, 1:41pm UTC](https://forum.alternetsoft.com/t/roslyndocumentationprovider/317 "2022-07-28T13:41:43Z")

</div>

Hello, to get XML-documentation to work, we used RoslynDocumentationProvider in MetadataReference.CreateFromFile. In version 8.10 RoslynDocumentationProvider is internal. What to do now?

---

## [Syntax highlighting/error display for function arguments that are delegates/functions in typescript](https://forum.alternetsoft.com/t/syntax-highlighting-error-display-for-function-arguments-that-are-delegates-functions-in-typescript/314)

<div class="topic-metadata">

**Author:** [@DerekDiamond](https://forum.alternetsoft.com/u/DerekDiamond)\
**Replies:** 4\
**Last updated:** [July 27, 2022, 10:56pm UTC](https://forum.alternetsoft.com/t/syntax-highlighting-error-display-for-function-arguments-that-are-delegates-functions-in-typescript/314 "2022-07-27T22:56:43Z")

</div>

I am using the Syntax editor for Javascript/Typescript. I am adding .NET objects via the parser.Repository.Project.HostItemsConfiguration.AddObject(name, value); The syntax highlighting and error displays work well, exc…

---

## [AlterNET Studio 8.1 released](https://forum.alternetsoft.com/t/alternet-studio-8-1-released/318)

<div class="topic-metadata">

**Author:** [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Replies:** 0\
**Last updated:** [July 20, 2022, 11:35am UTC](https://forum.alternetsoft.com/t/alternet-studio-8-1-released/318 "2022-07-20T11:35:04Z")

</div>

Hi Everyone, We have just released a new version of AlterNET Studio. AlterNET Studio 8.1 is a mid-cycle update focusing on optimizations, improvements and bug fixes for all our component libraries, including Code Edito…

---

## [Can't run .NET 6 console app due to missing System.Drawing package](https://forum.alternetsoft.com/t/cant-run-net-6-console-app-due-to-missing-system-drawing-package/313)

<div class="topic-metadata">

**Author:** [@AndrewS](https://forum.alternetsoft.com/u/AndrewS)\
**Replies:** 4\
**Last updated:** [July 8, 2022, 6:09am UTC](https://forum.alternetsoft.com/t/cant-run-net-6-console-app-due-to-missing-system-drawing-package/313 "2022-07-08T06:09:48Z")

</div>

Simple console app that references Alternet.Studio.Scripter.TypeScript version 8.0.6 in order to load and run JavaScript files. Builds successfully but when I run it I get this exception: Unhandled exception. System.Typ…

---

## [Code completion words](https://forum.alternetsoft.com/t/code-completion-words/310)

<div class="topic-metadata">

**Author:** [@OtherGuru](https://forum.alternetsoft.com/u/OtherGuru)\
**Replies:** 3\
**Last updated:** [June 29, 2022, 3:33pm UTC](https://forum.alternetsoft.com/t/code-completion-words/310 "2022-06-29T15:33:24Z")

</div>

We need our users to write python code to extend our software. We are thinking of using the code editor functionality along with PythonParser as lexer. Our users will use some APIs that we will provide and use some keywo…

---

## [Multiple document with ScriptRun](https://forum.alternetsoft.com/t/multiple-document-with-scriptrun/309)

<div class="topic-metadata">

**Author:** [@softkey87](https://forum.alternetsoft.com/u/softkey87)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 1:42pm UTC](https://forum.alternetsoft.com/t/multiple-document-with-scriptrun/309 "2022-05-30T13:42:13Z")

</div>

Hi, I’m trying to execute a script with ScriptRun with two document loaded from database. When I only have one document, I’m using ScriptRun.ScriptSource.FromScriptCode() and it’s working properly. The problem I have is…

---

## [Reuse compiled scripts](https://forum.alternetsoft.com/t/reuse-compiled-scripts/307)

<div class="topic-metadata">

**Author:** [@softkey87](https://forum.alternetsoft.com/u/softkey87)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 4:37pm UTC](https://forum.alternetsoft.com/t/reuse-compiled-scripts/307 "2022-05-26T16:37:38Z")

</div>

Hi, I would like to do exactly the same as of: Compiled Scripts but unfortunatly the link for the demo provided does not work anymore. Do you still have this demo or can you explain in further details how to achieve th…

---

## [Code editor python Compiler and how to change python](https://forum.alternetsoft.com/t/code-editor-python-compiler-and-how-to-change-python/306)

<div class="topic-metadata">

**Author:** [@alexis](https://forum.alternetsoft.com/u/alexis)\
**Replies:** 1\
**Last updated:** [May 23, 2022, 8:42am UTC](https://forum.alternetsoft.com/t/code-editor-python-compiler-and-how-to-change-python/306 "2022-05-23T08:42:55Z")

</div>

Do Python in the code editor have any compiler? If it has compiler, what it is called? then the second one is how can I change the use of python from the embedded one “Iron python” to the python installed in my local co…

---

## [Debugging issues in .NET 6](https://forum.alternetsoft.com/t/debugging-issues-in-net-6/304)

<div class="topic-metadata">

**Author:** [@Felix](https://forum.alternetsoft.com/u/Felix)\
**Replies:** 4\
**Last updated:** [May 20, 2022, 7:34am UTC](https://forum.alternetsoft.com/t/debugging-issues-in-net-6/304 "2022-05-20T07:34:09Z")

</div>

I recently updated my project from .Net 5 to .Net 6, together with updating AlterNET to version 8.0.4 I ran into two issues when debugging VisualBasic scripts (Roslyn Parser): Issue 1: When debugging in the DebugCodeE…

---

## [TextEditor.TextChanged not triggered when text is pasted](https://forum.alternetsoft.com/t/texteditor-textchanged-not-triggered-when-text-is-pasted/303)

<div class="topic-metadata">

**Author:** [@horvath.105](https://forum.alternetsoft.com/u/horvath.105)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 2:08pm UTC](https://forum.alternetsoft.com/t/texteditor-textchanged-not-triggered-when-text-is-pasted/303 "2022-05-05T14:08:30Z")

</div>

I’m running into an issue where the TextChanged event on the TextEditor is not fired when text is pasted into the editor. Is this by design? If so can you please provide some guidance as to what event I can use to detect…

---

## [Collapse regions (c#, roslyn parser)](https://forum.alternetsoft.com/t/collapse-regions-c-roslyn-parser/301)

<div class="topic-metadata">

**Author:** [@PMORSHED](https://forum.alternetsoft.com/u/PMORSHED)\
**Replies:** 5\
**Last updated:** [May 4, 2022, 1:12am UTC](https://forum.alternetsoft.com/t/collapse-regions-c-roslyn-parser/301 "2022-05-04T01:12:37Z")

</div>

Hi, How can I collapse regions in syntaxEdit? The following code doesn’t work for me: var txt = @"#region Sample //sample code.... #endregion"; syntaxEdit1.Text = txt; syntaxEdit1.Outlining.FullCollapse(); //not w…

---

## [Is it possible to put a WinForms executed from ScriptRun into a container of the main application?](https://forum.alternetsoft.com/t/is-it-possible-to-put-a-winforms-executed-from-scriptrun-into-a-container-of-the-main-application/300)

<div class="topic-metadata">

**Author:** [@mgan](https://forum.alternetsoft.com/u/mgan)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 9:12am UTC](https://forum.alternetsoft.com/t/is-it-possible-to-put-a-winforms-executed-from-scriptrun-into-a-container-of-the-main-application/300 "2022-05-02T09:12:25Z")

</div>

The main application is a WPF desktop app. The app ScriptRun compile and run is a WinForms app. I would like to put the WinForms form into the WindowsFormHost container. Is that possible? Thanks

---

## [DebugMyScript Demo not working correctly in NET6](https://forum.alternetsoft.com/t/debugmyscript-demo-not-working-correctly-in-net6/298)

<div class="topic-metadata">

**Author:** [@Dex](https://forum.alternetsoft.com/u/Dex)\
**Replies:** 2\
**Last updated:** [April 20, 2022, 8:17am UTC](https://forum.alternetsoft.com/t/debugmyscript-demo-not-working-correctly-in-net6/298 "2022-04-20T08:17:35Z")

</div>

Hi, The DebugMyScript project from the Demo solution runs the external debugger without any issues when running the project as net452. When you change it to net6.0-windows, the remote AlternetStudio debugger starts thro…

---

## [CODE COMPLETION](https://forum.alternetsoft.com/t/code-completion/173)

<div class="topic-metadata">

**Author:** [@h.molderings](https://forum.alternetsoft.com/u/h.molderings)\
**Replies:** 4\
**Last updated:** [April 18, 2022, 8:33am UTC](https://forum.alternetsoft.com/t/code-completion/173 "2022-04-18T08:33:10Z")

</div>

How to create code completion for SQL Scripts in Syntax Editor for a specific database (MS SQL Server)?

---

## [Goto Line Dialog](https://forum.alternetsoft.com/t/goto-line-dialog/296)

<div class="topic-metadata">

**Author:** [@lucid.dion](https://forum.alternetsoft.com/u/lucid.dion)\
**Replies:** 4\
**Last updated:** [April 8, 2022, 4:56pm UTC](https://forum.alternetsoft.com/t/goto-line-dialog/296 "2022-04-08T16:56:35Z")

</div>

We are using the Dark Theme (Editor WPF), and when we press Control-G the Goto Line dialog is only partially themed, so the descriptive text is not readable for example. Is this a known issue or is there any way to contr…

[Previous page](https://forum.alternetsoft.com/c/alternet-studio-support/5.md?page=3)

[Next page](https://forum.alternetsoft.com/c/alternet-studio-support/5.md?page=5)
