Support Forums

Search found 10807 matches

by jvierra
Thu May 25, 2017 1:07 am
Forum: PowerShell GUIs
Topic: TextBox/RichTextBox new lines for imported text file
Replies: 7
Views: 47

Re: TextBox/RichTextBox new lines for imported text file

Here is a good example of how a textbox works and how it can screw up lines.
by jvierra
Thu May 25, 2017 12:44 am
Forum: PowerShell GUIs
Topic: TextBox/RichTextBox new lines for imported text file
Replies: 7
Views: 47

Re: TextBox/RichTextBox new lines for imported text file

Mostly there is not enough information to know what it is that you are having an issue with. If you are parsing the file incorrectly then you will lose all lines or cause the output to be scrambled. A multiline textbox is an array of lines. If you feed it text only it will not be an array but will b...
by jvierra
Thu May 25, 2017 12:17 am
Forum: PowerShell GUIs
Topic: TextBox/RichTextBox new lines for imported text file
Replies: 7
Views: 47

Re: TextBox/RichTextBox new lines for imported text file

If there are line breaks in the file then the variable will be an array.

$variable = Get-Content file.log
$textbox1.Lines = $variable


There is no other way to do this. If you assign to Text the text will get clobbered.
by jvierra
Wed May 24, 2017 11:56 pm
Forum: PowerShell GUIs
Topic: TextBox/RichTextBox new lines for imported text file
Replies: 7
Views: 47

Re: TextBox/RichTextBox new lines for imported text file

$textbox1.Lines = Get-Content file.log

This maintains the line breaks.

When creating a file in PowerShell use Out-File -append and don't add line breaks. Out-File adds them automatically and correctly.
by jvierra
Wed May 24, 2017 5:42 pm
Forum: PowerShell GUIs
Topic: TAB on matched string
Replies: 7
Views: 47

Re: TAB on matched string

Sorry:

Look up and study the "forms events control flow" documentation.

Language is tricky. I get sloppy at ties.
by jvierra
Wed May 24, 2017 5:30 pm
Forum: PowerShell GUIs
Topic: TAB on matched string
Replies: 7
Views: 47

Re: TAB on matched string

Validateevent of the textbox? The Validate and Validating events of ANY "forms control" control the behavior of the form. As long as "Validating" returns "$_.Cancel - $true" the control will remain in focus. When it doesn't the "Validated event will fire allowing ...
by jvierra
Wed May 24, 2017 3:13 pm
Forum: PowerShell GUIs
Topic: TAB on matched string
Replies: 7
Views: 47

Re: TAB on matched string

You can set the form to move through the tabs automatically in the order you set. Place your test in the "Validating" event. When the event validates successfully the next control will be automatically selected. If you want a different control to be next use the "Select()" method...
by jvierra
Wed May 24, 2017 1:45 pm
Forum: Windows PowerShell
Topic: R6034 | Runtime Error | ..attempt to load C runtime library
Replies: 3
Views: 58

Re: R6034 | Runtime Error | ..attempt to load C runtime library

The C runtime must be present for anything to work. You need to be sure that Net 3.5 SP1 is installed.

In the "Microsoft SQL Server Compact Edition" folder under "Programs Files" contains a readme (ReadmeSSCE_ENU.htm) describing the requirements and limitations of SqlCE.
by jvierra
Wed May 24, 2017 1:27 pm
Forum: Windows PowerShell
Topic: R6034 | Runtime Error | ..attempt to load C runtime library
Replies: 3
Views: 58

Re: R6034 | Runtime Error | ..attempt to load C runtime library

The extra DLLs need to be added to the project in the installer phase. You cannot load them in the project folder or they may be added incorrectly.

DLLs can be targeted to a specific folder. In your case the should be in the folder with the EXE.

Go to advanced search