Search found 303 matches

by localpct
Fri Jan 17, 2020 6:46 am
Forum: PowerShell GUIs
Topic: Multi Display - Powershell forms opening on the focus display screen
Replies: 4
Views: 327

Re: Multi Display - Powershell forms opening on the focus display screen

why not something like $form1_Load={ #TODO: Initialize Form Controls here $this.Location = '-500,100' } While it might start on the center/main screen, you can use the location to move it to a second monitor. I'm guessing, you want these applications to open in the same spot everyday, and each app y...
by localpct
Wed Dec 18, 2019 11:07 am
Forum: PowerShell GUIs
Topic: Trying to write a utility to copy from Server Share to mapped drive
Replies: 5
Views: 291

Re: Trying to write a utility to copy from Server Share to mapped drive

It's your single quotes, to powershell, it means, literal. It has no idea that $SourcePath is a variable that you assigned with the values of ("\\Domain\Server\Share\Subfolder" + $env:USERNAME) it just see $Sourcepath change your single quotes to double quotes and watch your text go from Orange to S...
by localpct
Mon Nov 11, 2019 12:47 pm
Forum: PowerShell GUIs
Topic: FolderBrowserDialog - Select File
Replies: 2
Views: 562

Re: FolderBrowserDialog - Select File

Open your project
Go to the Design Tab
Then look up a bit and to the left
You'll have three boxes

Controls | Control Sets | Select

Click Control Sets, then double click which you want
by localpct
Mon Nov 11, 2019 10:33 am
Forum: Windows PowerShell
Topic: [Net.NetworkInformation.Ping]::New().SendPingAsync() - too fast?
Replies: 2
Views: 1994

Re: [Net.NetworkInformation.Ping]::New().SendPingAsync() - too fast?

that is an answer I can live with. I also had this issue with Asynchronous Network Ping
https://gallery.technet.microsoft.com/s ... g-abdf01aa
by localpct
Mon Nov 11, 2019 9:55 am
Forum: Windows PowerShell
Topic: [Net.NetworkInformation.Ping]::New().SendPingAsync() - too fast?
Replies: 2
Views: 1994

[Net.NetworkInformation.Ping]::New().SendPingAsync() - too fast?

So I was doing some testing on how to get the fastest, ping return on machines as we know, test-connection has a three second delay if the PC isn't found So in comes [Net.NetworkInformation.Ping]::New().SendPingAsync() I have found it likes to give me false statements, such as, a PC in California, w...
by localpct
Mon Oct 21, 2019 6:02 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 1224

Re: Modal forms

Wow... you make it so simple.
by localpct
Fri Oct 18, 2019 9:29 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 1224

Re: Modal forms

I modified the example to demonstrate how to communicate with a form via the synchash. It shows two methods for altering the a second main form from the creating form. I use the name "Parent" in the synchash but the form is not a true "Parent" as defined by the form's "Parent" property but it does ...
by localpct
Thu Oct 17, 2019 1:35 pm
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 1224

Re: Modal forms

Thanks.. I'll dig into this tomorrow and post back
by localpct
Thu Oct 17, 2019 9:47 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 1224

Re: Modal forms

viewtopic.php?f=21&t=14109&p=74346&hili ... rms#p74346

I just used this in the demo
So yes its a runspace
by localpct
Thu Oct 17, 2019 9:24 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 1224

Re: Modal forms

Sorry, it is a runspace

And the code is yours J