# \#windows-forms

**URL:** https://forum.alternetsoft.com/tag/windows-forms/4.md

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

---

## [I want the JSParser to accept the await keyword in the editor](https://forum.alternetsoft.com/t/i-want-the-jsparser-to-accept-the-await-keyword-in-the-editor/528)

<div class="topic-metadata">

**Author:** [@DerekDiamond](https://forum.alternetsoft.com/u/DerekDiamond)\
**Replies:** 4\
**Last updated:** [November 23, 2026, 6:24pm UTC](https://forum.alternetsoft.com/t/i-want-the-jsparser-to-accept-the-await-keyword-in-the-editor/528 "2026-11-23T18:24:45Z")

</div>

I want the script editor to accept the await keyword. Where can I set that this is allowed. At the moment the editor shows that the await is not supported at top level, unless the module option is set to ‘es2022’ … Wher…

---

## [Lock in "RoslynParser.ForceReparseText"](https://forum.alternetsoft.com/t/lock-in-roslynparser-forcereparsetext/336)

<div class="topic-metadata">

**Author:** [@wknauf](https://forum.alternetsoft.com/u/wknauf)\
**Replies:** 12\
**Last updated:** [November 23, 2026, 3:34pm UTC](https://forum.alternetsoft.com/t/lock-in-roslynparser-forcereparsetext/336 "2026-11-23T15:34:16Z")

</div>

Hi, in our app, I observe a deadlock in our call to “RoslynParser.ForceReparseText”. I have to call this method to create a printable RTF stream (by using “SyntaxEdit.SaveStream (…, new RtfExport())”). It if is not call…

---

## [VisualThemeColors search results color](https://forum.alternetsoft.com/t/visualthemecolors-search-results-color/501)

<div class="topic-metadata">

**Author:** [@rob.panosh](https://forum.alternetsoft.com/u/rob.panosh)\
**Replies:** 2\
**Last updated:** [August 7, 2025, 6:25am UTC](https://forum.alternetsoft.com/t/visualthemecolors-search-results-color/501 "2025-08-07T06:25:44Z")

</div>

Can searchresult text color be set? I would like to set it white. I only see a setting for the background color. Rob

---

## [VBParser LoadStream](https://forum.alternetsoft.com/t/vbparser-loadstream/503)

<div class="topic-metadata">

**Author:** [@rob.panosh](https://forum.alternetsoft.com/u/rob.panosh)\
**Replies:** 3\
**Last updated:** [July 30, 2025, 9:10am UTC](https://forum.alternetsoft.com/t/vbparser-loadstream/503 "2025-07-30T09:10:35Z")

</div>

Hi, I need to load text into the VBParser synchronously. Below is the code I am using but is loading in background thread and code after is continuing. Using sw As New StringWriter With Me.\_vbParser Using sr As New …

---

## [Visual Basic parser suppress warning](https://forum.alternetsoft.com/t/visual-basic-parser-suppress-warning/502)

<div class="topic-metadata">

**Author:** [@rob.panosh](https://forum.alternetsoft.com/u/rob.panosh)\
**Replies:** 4\
**Last updated:** [July 25, 2025, 2:26am UTC](https://forum.alternetsoft.com/t/visual-basic-parser-suppress-warning/502 "2025-07-25T02:26:19Z")

</div>

When creating VB Roslyn compiler warning can be suppress using options: options = options.WithSpecificDiagnosticOptions( New Dictionary(Of String, ReportDiagnostic) From { {“BC40000”, ReportDiagnostic.Suppress}, ’ Sup…

---

## [Is it possible to save/load a script from AlterNET 5.1?](https://forum.alternetsoft.com/t/is-it-possible-to-save-load-a-script-from-alternet-5-1/494)

<div class="topic-metadata">

**Author:** [@AmitJain](https://forum.alternetsoft.com/u/AmitJain)\
**Replies:** 3\
**Last updated:** [June 11, 2025, 5:49am UTC](https://forum.alternetsoft.com/t/is-it-possible-to-save-load-a-script-from-alternet-5-1/494 "2025-06-11T05:49:17Z")

</div>

Hello, I have been using AlterNET 5.1. in WinForms, I wanted to know is there any API’s or pre-existing feature we can use to save/load the script file in text or any other format.

---

## [SyntaxEdit tabstops in Block selection type](https://forum.alternetsoft.com/t/syntaxedit-tabstops-in-block-selection-type/493)

<div class="topic-metadata">

**Author:** [@todd.wilson](https://forum.alternetsoft.com/u/todd.wilson)\
**Replies:** 3\
**Last updated:** [June 6, 2025, 12:44pm UTC](https://forum.alternetsoft.com/t/syntaxedit-tabstops-in-block-selection-type/493 "2025-06-06T12:44:49Z")

</div>

I’m wondering if this is expected behavior: Using the windows forms SyntaxEdit control with the following: SyntaxEdit.Lines.TabStops = new int {4}; SyntaxEdit.Lines.UseSpaces = true; SelectionType.Stream - Pressing …

---

## [DebugMenu object not using localisation strings](https://forum.alternetsoft.com/t/debugmenu-object-not-using-localisation-strings/471)

<div class="topic-metadata">

**Author:** [@mgan](https://forum.alternetsoft.com/u/mgan)\
**Replies:** 1\
**Last updated:** [October 17, 2024, 4:30am UTC](https://forum.alternetsoft.com/t/debugmenu-object-not-using-localisation-strings/471 "2024-10-17T04:30:32Z")

</div>

Hi, I am experiencing difficulty getting the DebugMenu object to use the localisation strings (specifically RU). The CurrentCulture, CurrentUICulture, DefaultThreadCulture DefaultThreadUICulture are all set accordingly…

---

## [Announcement : AlterNET Studio 9.1 released](https://forum.alternetsoft.com/t/announcement-alternet-studio-9-1-released/423)

<div class="topic-metadata">

**Author:** [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Replies:** 2\
**Last updated:** [November 29, 2023, 12:20am UTC](https://forum.alternetsoft.com/t/announcement-alternet-studio-9-1-released/423 "2023-11-29T00:20:14Z")

</div>

Hi everyone, We’re glad to announce that a new version of AlterNET Studio is available. AlterNET Studio 9.1 is a mid-cycle release focusing on improvements for all our core libraries: Code Editor, Scripter, and Form De…

---

## [Indentation issues in C# editor with code snippets](https://forum.alternetsoft.com/t/indentation-issues-in-c-editor-with-code-snippets/426)

<div class="topic-metadata">

**Author:** [@PaulB](https://forum.alternetsoft.com/u/PaulB)\
**Replies:** 11\
**Last updated:** [November 21, 2023, 8:06am UTC](https://forum.alternetsoft.com/t/indentation-issues-in-c-editor-with-code-snippets/426 "2023-11-21T08:06:17Z")

</div>

Dear AlterNET team, we are using your C# WinForms editor, and are pretty happy with it, we just have been unable to get a consistent indentation behavior to work when editing code snippets (method bodies in our case, in…

---

## [Vb.Net Roslyn Syntax Editor Error](https://forum.alternetsoft.com/t/vb-net-roslyn-syntax-editor-error/424)

<div class="topic-metadata">

**Author:** [@rob.panosh](https://forum.alternetsoft.com/u/rob.panosh)\
**Replies:** 8\
**Last updated:** [October 11, 2023, 4:44pm UTC](https://forum.alternetsoft.com/t/vb-net-roslyn-syntax-editor-error/424 "2023-10-11T16:44:24Z")

</div>

Hi, Any ideas why I am getting the attached error? I am using the Roslyn VB.Net parser. (class ‘Report\_Script’ and class ‘Report\_Script’ conflict in name space ‘\<Default’) Thanks, Rob

---

## [Show parameters in custom methods](https://forum.alternetsoft.com/t/show-parameters-in-custom-methods/421)

<div class="topic-metadata">

**Author:** [@dave](https://forum.alternetsoft.com/u/dave)\
**Replies:** 2\
**Last updated:** [September 8, 2023, 12:11pm UTC](https://forum.alternetsoft.com/t/show-parameters-in-custom-methods/421 "2023-09-08T12:11:51Z")

</div>

hi, I’d like to show the parametrs signature of a method. I have manually inserted the methods in JsListMembers in the NeedCodeCompletion. I see the list of the method but if I choose one, then if I type “(” I dont see…

---

## [Javascript GetSyntaxErrors on WINFORMS](https://forum.alternetsoft.com/t/javascript-getsyntaxerrors-on-winforms/416)

<div class="topic-metadata">

**Author:** [@dave](https://forum.alternetsoft.com/u/dave)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 7:48am UTC](https://forum.alternetsoft.com/t/javascript-getsyntaxerrors-on-winforms/416 "2023-08-31T07:48:57Z")

</div>

it seems that the parser method GetSyntaxErrors doesnt recognize javascript error code. How can I validate an editor with javascript Code? thank you Davide

---

## [Auto generate event handler method stub?](https://forum.alternetsoft.com/t/auto-generate-event-handler-method-stub/396)

<div class="topic-metadata">

**Author:** [@wsdyn](https://forum.alternetsoft.com/u/wsdyn)\
**Replies:** 3\
**Last updated:** [August 23, 2023, 12:15pm UTC](https://forum.alternetsoft.com/t/auto-generate-event-handler-method-stub/396 "2023-08-23T12:15:30Z")

</div>

Can AlternetStudio generate event handler method stub? For example when user attaches event handler through code like: var comp = new MyComponent(); comp.SomeEvent += Component\_SomeEvent; comp.S…

---

## [Hidding namespace, using & co in the editor](https://forum.alternetsoft.com/t/hidding-namespace-using-co-in-the-editor/402)

<div class="topic-metadata">

**Author:** [@TIBO](https://forum.alternetsoft.com/u/TIBO)\
**Replies:** 6\
**Last updated:** [July 7, 2023, 1:34pm UTC](https://forum.alternetsoft.com/t/hidding-namespace-using-co-in-the-editor/402 "2023-07-07T13:34:21Z")

</div>

Hi I would to know if there is a way to hide all the “using” part, “namespace”, and even the class and method declarations of the editor, while keeping the fact that we are in this class::Method In my project, i would …

---

## [HOW TO DISABLE MENU EDITOR ADD NEW](https://forum.alternetsoft.com/t/how-to-disable-menu-editor-add-new/28)

<div class="topic-metadata">

**Author:** [@jaakko.salmenius](https://forum.alternetsoft.com/u/jaakko.salmenius)\
**Replies:** 7\
**Last updated:** [January 9, 2023, 5:58pm UTC](https://forum.alternetsoft.com/t/how-to-disable-menu-editor-add-new/28 "2023-01-09T17:58:44Z")

</div>

I am evaluation your Win Form designer. It seems working very well. However I have one question. Your editor shows the menu of on my form correctly. Hoever it also lets you add new menu items. How can I disable the add n…

---

## [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…

---

## [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

---

## [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 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…

---

## [Globals items stay empty and added references cannot be found](https://forum.alternetsoft.com/t/globals-items-stay-empty-and-added-references-cannot-be-found/294)

<div class="topic-metadata">

**Author:** [@miko36](https://forum.alternetsoft.com/u/miko36)\
**Replies:** 1\
**Last updated:** [March 31, 2022, 3:26am UTC](https://forum.alternetsoft.com/t/globals-items-stay-empty-and-added-references-cannot-be-found/294 "2022-03-31T03:26:31Z")

</div>

Best Team Alternet, I have created a new project that is based of the “Debugger Integration” demo. The demo shows how to debug a script by opening a whole project, I have modified the Demo so that it only opens a singl…

---

## [Gutter shows lines modified even though no text has changed](https://forum.alternetsoft.com/t/gutter-shows-lines-modified-even-though-no-text-has-changed/292)

<div class="topic-metadata">

**Author:** [@rob.dunbar](https://forum.alternetsoft.com/u/rob.dunbar)\
**Replies:** 3\
**Last updated:** [March 30, 2022, 3:22am UTC](https://forum.alternetsoft.com/t/gutter-shows-lines-modified-even-though-no-text-has-changed/292 "2022-03-30T03:22:36Z")

</div>

Using the ScriptCodeEdit I notice that the modified lines show up in the Gutter even when replacing a character. i.e. No “real” change has occurred, but it still goes yellow. Am I missing something or is there any plan…

---

## [Callback "OnPasted" in Xml Editor](https://forum.alternetsoft.com/t/callback-onpasted-in-xml-editor/248)

<div class="topic-metadata">

**Author:** [@wknauf](https://forum.alternetsoft.com/u/wknauf)\
**Replies:** 6\
**Last updated:** [February 2, 2022, 12:30pm UTC](https://forum.alternetsoft.com/t/callback-onpasted-in-xml-editor/248 "2022-02-02T12:30:07Z")

</div>

Hi, when the user pastes XML text in the editor, I want to check whether the pasted text (or the new content of the editor) contains the “xmlns” attribute. If it is missing, I want to add it. There is no callback/event…

---

## [Questions regarding IExpressionEvaluator](https://forum.alternetsoft.com/t/questions-regarding-iexpressionevaluator/281)

<div class="topic-metadata">

**Author:** [@Apex](https://forum.alternetsoft.com/u/Apex)\
**Replies:** 4\
**Last updated:** [January 19, 2022, 11:20pm UTC](https://forum.alternetsoft.com/t/questions-regarding-iexpressionevaluator/281 "2022-01-19T23:20:39Z")

</div>

I would like an explanation of the IExpressionEvaluator interface. I gather it deals with dynamic evaluation of text in a parser, but I’m not sure the context(s) in which this will be called. I am keen to understand both…

---

## [How to implement SmartEdit in custom parser?](https://forum.alternetsoft.com/t/how-to-implement-smartedit-in-custom-parser/280)

<div class="topic-metadata">

**Author:** [@Apex](https://forum.alternetsoft.com/u/Apex)\
**Replies:** 4\
**Last updated:** [January 19, 2022, 1:43am UTC](https://forum.alternetsoft.com/t/how-to-implement-smartedit-in-custom-parser/280 "2022-01-19T01:43:19Z")

</div>

I understand that a parser indicates its ability to perform SmartEdit by including that in the ResetOptions() method. What I’d like to understand is how the editor interacts with the parser when a user hits return and wh…

---

## [Support for .NET6](https://forum.alternetsoft.com/t/support-for-net6/274)

<div class="topic-metadata">

**Author:** [@AndrewS](https://forum.alternetsoft.com/u/AndrewS)\
**Replies:** 9\
**Last updated:** [January 4, 2022, 10:27am UTC](https://forum.alternetsoft.com/t/support-for-net6/274 "2022-01-04T10:27:27Z")

</div>

I have recently attempted to convert all of our software from .NET Framework v4.8 to 6.0. Whilst everything builds and runs, attempting to show a form containing the syntax editor results in the following exception: Bin…

---

## [Code Examples missing in Demo](https://forum.alternetsoft.com/t/code-examples-missing-in-demo/268)

<div class="topic-metadata">

**Author:** [@AXP](https://forum.alternetsoft.com/u/AXP)\
**Replies:** 2\
**Last updated:** [November 30, 2021, 7:59am UTC](https://forum.alternetsoft.com/t/code-examples-missing-in-demo/268 "2021-11-30T07:59:55Z")

</div>

In the Alternet Demo Explorer the “Open Project” button is grayed out an I’m not able to open the Example code. What’s wrong? Do I need another Demo-executable where the samples are included? I desperatley need them beca…

---

## [Showing usage help as part of tooltips](https://forum.alternetsoft.com/t/showing-usage-help-as-part-of-tooltips/265)

<div class="topic-metadata">

**Author:** [@AndrewS](https://forum.alternetsoft.com/u/AndrewS)\
**Replies:** 4\
**Last updated:** [November 29, 2021, 11:52pm UTC](https://forum.alternetsoft.com/t/showing-usage-help-as-part-of-tooltips/265 "2021-11-29T23:52:30Z")

</div>

Is there any way to import the comments associated with properties/functions that are imported from a DLL when using the JavaScript parser? i.e. Here is what the tooltip shows in the demo application: Here is what I…

---

## [Updating cached \<mydll\>.d.ts files](https://forum.alternetsoft.com/t/updating-cached-mydll-d-ts-files/263)

<div class="topic-metadata">

**Author:** [@AndrewS](https://forum.alternetsoft.com/u/AndrewS)\
**Replies:** 2\
**Last updated:** [November 25, 2021, 6:28am UTC](https://forum.alternetsoft.com/t/updating-cached-mydll-d-ts-files/263 "2021-11-25T06:28:21Z")

</div>

I’m using the JavaScript parser + syntax editor and have created a DLL which exposes a number of functions to the script engine. This all works, but recently when I added some new functions to the DLL and then attempted …

[Next page](https://forum.alternetsoft.com/tag/windows-forms/4.md?match_all_tags=true&page=1&tags%5B%5D=windows-forms)
