Support Forums

Search found 9736 matches

by jvierra
Sun Sep 25, 2016 11:13 pm
Forum: PowerShell Studio
Topic: Check PS version on startup
Replies: 11
Views: 146

Re: Check PS version on startup

A few more test seem to show that an exe ignores the "requires" statement so use the version table:

if($PSVersionTable.PSVersion.Major -lt 5){exit}
by jvierra
Sun Sep 25, 2016 11:08 pm
Forum: PowerShell Studio
Topic: Check PS version on startup
Replies: 11
Views: 146

Re: Check PS version on startup

If you have a script with #requires -version 5 on line one and it does not reject the script then you have other issues.

The "class" keyword is only available in version 5.

I cannot reproduce your issues.
by jvierra
Sun Sep 25, 2016 10:20 pm
Forum: PowerShell Studio
Topic: Check PS version on startup
Replies: 11
Views: 146

Re: Check PS version on startup

Where did you place the line of code?

Did you build the EXE with PS 5 only?
by jvierra
Fri Sep 23, 2016 7:06 pm
Forum: PowerShell GUIs
Topic: Powershell studio issue
Replies: 3
Views: 79

Re: Powershell studio issue

If the font is not available in the designer it is not available. Perhaps the font is not installed globally. TO be available it should be installed in Windows\Fonts. If you need to distribute this code then the font must be made available on all systems wishing to use it. If it is not available the...
by jvierra
Fri Sep 23, 2016 8:07 am
Forum: PowerShell GUIs
Topic: Adding new lines to RichTextbox with different colors
Replies: 7
Views: 76

Re: Adding new lines to RichTextbox with different colors

No need to apologize. It is a common mistake but know you know.
by jvierra
Fri Sep 23, 2016 6:15 am
Forum: PowerShell GUIs
Topic: Adding new lines to RichTextbox with different colors
Replies: 7
Views: 76

Re: Adding new lines to RichTextbox with different colors

Did you actually try and run my example. It works so your form must not be using a richtextbox.

"SelectionColor" is not a command. It is a property.
by jvierra
Fri Sep 23, 2016 5:43 am
Forum: PowerShell GUIs
Topic: Adding new lines to RichTextbox with different colors
Replies: 7
Views: 76

Re: Adding new lines to RichTextbox with different colors

Here is an old demo of how to add color.
by jvierra
Thu Sep 22, 2016 9:30 pm
Forum: PowerShell GUIs
Topic: adding more forms?
Replies: 14
Views: 201

Re: adding more forms?

You are welcome. Lots of possibilities. Good luck.
by jvierra
Thu Sep 22, 2016 6:54 pm
Forum: PowerShell Studio
Topic: Check PS version on startup
Replies: 11
Views: 146

Re: Check PS version on startup

#requires -version 5

Place this in Globals.ps1 a the first statement.
by jvierra
Thu Sep 22, 2016 6:41 pm
Forum: PowerShell GUIs
Topic: Adding new lines to RichTextbox with different colors
Replies: 7
Views: 76

Re: Adding new lines to RichTextbox with different colors

You have to select the text to add the color or use RTF color commands with the test.

Go to advanced search