Search found 5913 matches

by davidc
Thu Jun 27, 2019 7:23 am
Forum: PowerShell GUIs
Topic: $openfiledialog1.InitialDirectory not opening in correct folder
Replies: 7
Views: 3577

Re: $openfiledialog1.InitialDirectory not opening in correct folder

I ran a quick test and the dialog opens to the correct path when I set the InitialDirectory property.

Does the specified folder exist? If not, it might default to another path.
by davidc
Thu Jun 27, 2019 7:19 am
Forum: PowerShell GUIs
Topic: $openfiledialog1.InitialDirectory not opening in correct folder
Replies: 7
Views: 3577

Re: $openfiledialog1.InitialDirectory not opening in correct folder

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
by davidc
Wed Jun 26, 2019 10:16 am
Forum: PowerShell GUIs
Topic: Circular Light Indictor Widget
Replies: 6
Views: 3015

Re: Circular Light Indictor Widget

There is no build in or custom control set for this, but you could create your own. It is possible to override the CheckBox's Paint event and draw an image, but that is a bit advanced. I recommend searching the web for C# examples. If you were to use a Button with an image, you would have to track t...
by davidc
Wed Jun 26, 2019 7:43 am
Forum: PowerShell GUIs
Topic: running part of a script with different credentials.
Replies: 5
Views: 4334

Re: running part of a script with different credentials.

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
by davidc
Thu Jun 20, 2019 7:52 am
Forum: PowerShell GUIs
Topic: New-ADUser form
Replies: 2
Views: 2510

Re: New-ADUser form

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
by davidc
Tue Jun 18, 2019 3:49 pm
Forum: Wish List and Feature Requests
Topic: Error object blocks with open brace on newline
Replies: 6
Views: 12488

Re: Error object blocks with open brace on newline

I understand and thank you for the suggestion. I wonder if this would make more sense as a PSScriptAnalyzer rule.
by davidc
Tue Jun 18, 2019 2:51 pm
Forum: Wish List and Feature Requests
Topic: Error object blocks with open brace on newline
Replies: 6
Views: 12488

Re: Error object blocks with open brace on newline

My apologies, I misunderstood the request. I thought you were reporting a formatting issue where PowerShell Studio was placing the opening bracket on a new line. As for errors, it is PowerShell engine that reports the syntax errors. Even though your intention was for the script block to be part of t...
by davidc
Tue Jun 18, 2019 2:16 pm
Forum: Wish List and Feature Requests
Topic: Error object blocks with open brace on newline
Replies: 6
Views: 12488

Re: Error object blocks with open brace on newline

Please try the latest service build of PowerShell Studio (v165). It should resolve this issue.
by davidc
Tue Jun 18, 2019 10:22 am
Forum: PowerShell GUIs
Topic: Windows Form Hanging Citrix Cloud
Replies: 2
Views: 2033

Re: Windows Form Hanging Citrix Cloud

Some cmdlets can hang when the form is displayed because the GUI is holding up the pipeline. This all depends on the internal implementation of the cmdlets. You can try to run these commands before the form is displayed or use a job to run the commands via the Job Tracker control set. https://info.s...
by davidc
Tue Jun 18, 2019 10:18 am
Forum: PowerShell GUIs
Topic: Windows Form Hanging Citrix Cloud
Replies: 2
Views: 2033

Re: Windows Form Hanging Citrix Cloud

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]