Search found 11276 matches

by jvierra
Wed Sep 20, 2017 12:04 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 140

Re: $richTextBox

Are you sure there is data?
by jvierra
Wed Sep 20, 2017 8:59 am
Forum: PowerShell GUIs
Topic: Run job as a function?
Replies: 15
Views: 228

Re: Run job as a function?

$Groups does not exist outside of the competed script block.
by jvierra
Tue Sep 19, 2017 9:15 am
Forum: PowerShell GUIs
Topic: GUI Window Resizing
Replies: 1
Views: 58

Re: GUI Window Resizing

by jvierra
Mon Sep 18, 2017 11:43 am
Forum: PowerShell GUIs
Topic: If DatagridviewHeader contains SamAccountName then ...
Replies: 1
Views: 95

Re: If DatagridviewHeader contains SamAccountName then ...

$DataGridView.Columns contains all of the columns in a grid.

ALWAYS - look at the documentation for the control to learn how it is built and how it works. PSS makes access to the documentation a one-click effort.
by jvierra
Mon Sep 18, 2017 11:21 am
Forum: PowerShell GUIs
Topic: Catch correct error line in PS GUI?
Replies: 9
Views: 303

Re: Catch correct error line in PS GUI?

It is called the "call stack" and is a property of the exception object.

$_.Exception.StackTrace

https://msdn.microsoft.com/en-us/librar ... .110).aspx
by jvierra
Mon Sep 18, 2017 11:04 am
Forum: PowerShell GUIs
Topic: Hide and disable single TreeView node
Replies: 6
Views: 160

Re: Hide and disable single TreeView node

See: https://msdn.microsoft.com/en-us/librar ... .110).aspx

The TreeNode class does not support what you are asking.
by jvierra
Sun Sep 17, 2017 4:29 am
Forum: PowerShell GUIs
Topic: DataGridView - cell as button column
Replies: 5
Views: 172

Re: DataGridView - cell as button column

Sounds good to me. One note of direction. When we build grids the usual command method is to use a “context” menu. That is why most controls have a property where you can assign the context menu and the control display it for you. This allows for many commands to be added to manage an item in a list...
by jvierra
Fri Sep 15, 2017 6:29 pm
Forum: PowerShell GUIs
Topic: Keeping Variables in external file
Replies: 13
Views: 384

Re: Keeping Variables in external file

Given the following variables: $myint=9999 $myString = 'Something as a string' $myfloat = 1.99 $myhash = @{Name='Joe';Age=10;Team='May''s Landing'} $myint,$mystring,$myfloat,$myhash | ConvertTo-Xml We can store them in the following ways: # as xml $settings = $myint,$mystring,$myfloat,$myhash | Conv...