Search found 12646 matches

by jvierra
Tue Sep 18, 2018 11:03 am
Forum: PowerShell GUIs
Topic: Strange DataGridView issue
Replies: 2
Views: 32

Re: Strange DataGridView issue

Unfortunately without a simple example of your code there is no way to guess at the issue.

It is likely that the code is not retuning any information that can be displayed. Place trace statements in your code. Rin the script on the laptop to test that the script actually works on that configuration.
by jvierra
Tue Sep 18, 2018 10:50 am
Forum: PowerShell GUIs
Topic: POSH-SSH module is not functioning from a button press on a form
Replies: 1
Views: 26

Re: POSH-SSH module is not functioning from a button press on a form

Please run the form in the debugger and step though the button code.
by jvierra
Tue Sep 18, 2018 10:26 am
Forum: PowerShell GUIs
Topic: Array and Richtextbox
Replies: 3
Views: 44

Re: Array and Richtextbox

Remove Format-Table. It is not necessary.
by jvierra
Tue Sep 18, 2018 6:05 am
Forum: PowerShell GUIs
Topic: StatusBar change text color
Replies: 2
Views: 36

Re: StatusBar change text color

A statusbar does not have a settable color. To get settable color use a StatusStrip control.
by jvierra
Tue Sep 18, 2018 6:02 am
Forum: PowerShell GUIs
Topic: Array and Richtextbox
Replies: 3
Views: 44

Re: Array and Richtextbox

You cannot use the output to "Format-Table" to output plain text to a textbox or a file. It is designed to output to the console.
by jvierra
Mon Sep 17, 2018 1:32 pm
Forum: Windows PowerShell
Topic: Iterate through CSV for System.Diagnostics.Process object
Replies: 1
Views: 57

Re: Iterate through CSV for System.Diagnostics.Process object

Hi njcappa,

You have posted the code from another thread that runs a process asynchronously. You need to post an example of your code.

Also not that a process is not a good way to execute PowerShell code. It is good for non-PS programs. For PS code use a job, workspace or runspace.
by jvierra
Fri Sep 14, 2018 2:29 pm
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 158

Re: DoubleClick Treeview Node problem

The following code will block the annoying expanding and collapsing with a double-click. $treeviewNav_BeforeExpand=[System.Windows.Forms.TreeViewCancelEventHandler]{ #Event Argument: $_ = [System.Windows.Forms.TreeViewCancelEventArgs] if($_.Action -eq 'ByMouse'){$_.Cancel = $true} } You can now use ...
by jvierra
Fri Sep 14, 2018 2:08 pm
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 158

Re: DoubleClick Treeview Node problem

Google knows not where-from they speak. The only way to modify the double-click is to create a new treeview which is why most programmers never use it to manage checkboxes. Even "overriding" the class cannot do this. You issue has been an issue with programmers since the fist version of the control ...
by jvierra
Fri Sep 14, 2018 1:24 am
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 158

Re: DoubleClick Treeview Node problem

Here is the official Microsoft method from the SDK. It uses only one recursive function.
by jvierra
Thu Sep 13, 2018 6:11 pm
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 158

Re: DoubleClick Treeview Node problem

Try this: