Search found 7005 matches

by Alexander Riedel
Thu Jul 25, 2019 7:24 am
Forum: PowerShell Studio
Topic: Installation hangs at "Extracting files from archive"
Replies: 3
Views: 482

Re: Installation hangs at "Extracting files from archive"

Thank you for letting us now. We have no particular requirement on AppData not being redirected, nor do we apply any special settings. Since this happens in the extracting stage, it's not really anything under our control. I will forward this to our installer tool vendor and see what they can find o...
by Alexander Riedel
Thu Jul 25, 2019 12:17 am
Forum: Trial Software / Pre-sales Technical Questions
Topic: Powershell Studio 2019 not parsing the script blocks
Replies: 10
Views: 2055

Re: Powershell Studio 2019 not parsing the script blocks

*** Please fill in the fields below if you are currently using a Trial Version of the Product. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: 32 or 64 bit v...
by Alexander Riedel
Fri Jul 19, 2019 10:37 am
Forum: PowerShell Studio
Topic: Does the deubgger in Studio debug PowerShell 6 scripts?
Replies: 1
Views: 821

Re: Does the deubgger in Studio debug PowerShell 6 scripts?

No, not yet. Microsoft dragged their feet releasing a functioning SDK for PowerShell Core.
There is no specified date at this time. As PowerShell 7 will become a mainstream Windows component again, it will make things 'easier'.
by Alexander Riedel
Wed Jul 17, 2019 11:51 pm
Forum: PowerShell GUIs
Topic: Problem getting the current BackColor of a textbox object
Replies: 17
Views: 992

Re: Problem getting the current BackColor of a textbox object

Seems like you can use another .NET type for a conversion:
if($label1.BackColor.IsNamedColor -eq $false) {
$BackColor = $label1.BackColor.Name
$BackColor = [System.Drawing.ColorTranslator]::FromHtml('#'+$BackColor)
}

Or at least that's what Google said :D
by Alexander Riedel
Wed Jul 17, 2019 11:35 pm
Forum: PowerShell GUIs
Topic: Problem getting the current BackColor of a textbox object
Replies: 17
Views: 992

Re: Problem getting the current BackColor of a textbox object

All UI controls with color settings use the type [System.Drawing.Color]. I use a label here, but it doesn't really matter. if($label1.BackColor.IsNamedColor -eq $true){ $ColorName = $label1.BackColor.Name } else { $label1.BackColor = 'green' $ColorName = $label1.BackColor.Name } [System.Windows.Form...
by Alexander Riedel
Wed Jul 17, 2019 7:45 am
Forum: PowerShell GUIs
Topic: Problem getting the current BackColor of a textbox object
Replies: 17
Views: 992

Re: Problem getting the current BackColor of a textbox object

2019-07-17_7-44-02.png
2019-07-17_7-44-02.png (17.96 KiB) Viewed 561 times
by Alexander Riedel
Tue Jul 16, 2019 4:12 pm
Forum: PowerShell Studio
Topic: not getting output from msgbox
Replies: 14
Views: 2267

Re: not getting output from msgbox

$PSScriptRoot and $PSCommandPath are filled where possible as a convenience to users. You must keep in mind though that packaged code does not run as a script. It is executed as code in a custom host. So there are some differences to keep in mind and PowerShell is likely getting confused as to the s...
by Alexander Riedel
Mon Jul 15, 2019 1:27 pm
Forum: PowerShell Studio
Topic: not getting output from msgbox
Replies: 14
Views: 2267

Re: not getting output from msgbox

It really depends on what you are doing. In a nutshell: Windows is a generic Windows app and all output (e.g. Write-Host) is directed to a message box. Windows Forms eats all generic powershell output from Write-host, write-output, out-* etc. All output must be through form elements or message boxes...
by Alexander Riedel
Mon Jul 15, 2019 11:20 am
Forum: PowerShell Studio
Topic: not getting output from msgbox
Replies: 14
Views: 2267

Re: not getting output from msgbox

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build:
32 or 64 bit version of product:
Operating system:
32 or 64 bit OS:
by Alexander Riedel
Thu Jul 11, 2019 5:01 am
Forum: PowerShell Studio
Topic: Running an exported form in ConstrainedLanguage mode causes massive errors
Replies: 2
Views: 1114

Re: Running an exported form in ConstrainedLanguage mode causes massive errors

We sent a request regarding this constrained mode around. Since we have no encountered this before we suspected it is not in very wide use. Below is the reply from Lee Holmes at Microsoft on this subject: It might be a good time to talk to your customer 😊 Anything but NoLanguage mode in an endpoint ...