Search found 69 matches

by angelofstealth
Thu Mar 07, 2019 12:03 pm
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 5554

Re: Treeview - Node - Property (Plus/Minus)

Is there not a way to add the show plus/minus on adding the node vs on click? As with the psf attached my code is doing the same thing by showing the dropdown/plus after a click and not when the nodes are added.
by angelofstealth
Thu Mar 07, 2019 10:55 am
Forum: PowerShell GUIs
Topic: Treeview - Node - Property (Plus/Minus)
Replies: 18
Views: 5554

Treeview - Node - Property (Plus/Minus)

Is there a way to force or add a property to add the ShowPlusMinus to a treeview node? Example code below, works fine as far as loading in the objects in the treeview and clicking down through the treeview. Just none of my dropdowns will have Plus or Minus, the property is set by default to true and...
by angelofstealth
Wed Feb 06, 2019 7:09 pm
Forum: PowerShell GUIs
Topic: Jobtracker - startjob working, want to update progressbar as coms are processed
Replies: 7
Views: 2042

Re: Jobtracker - startjob working, want to update progressbar as coms are processed

I can't update grid in the updatescript area as the objects i am sending back through Jobscript are not returning any data. If I use the following code in CompletedScript i get the object data, in UpdateScript i return null. Thought you could not pass variables to the UpdateScript, only information ...
by angelofstealth
Wed Feb 06, 2019 12:48 pm
Forum: PowerShell GUIs
Topic: Jobtracker - startjob working, want to update progressbar as coms are processed
Replies: 7
Views: 2042

Re: Jobtracker - startjob working, want to update progressbar as coms are processed

What I am trying to do is every time objects are returned from a computer, update global variables with the values. When the total computers values are returned, update the datagridview and a progressbar as values are returned. I have tried using a job for each computer object and in the completedsc...
by angelofstealth
Wed Feb 06, 2019 9:17 am
Forum: PowerShell GUIs
Topic: Jobtracker - startjob working, want to update progressbar as coms are processed
Replies: 7
Views: 2042

Jobtracker - startjob working, want to update progressbar as coms are processed

Is there a way to return the $i (int) value to the UpdateScript to update a progressbar while the job is in progress. I have tried creating an object and calling that object in the return results in UpdateScript and passing back the value of $i from JobScript. Since I am already returning objects ba...
by angelofstealth
Thu Jan 31, 2019 3:10 pm
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 2532

Re: Datagridview - formatting just stopped working.

The width set in the script seems to work now if i use the ConvertTo-DataTable/code you provided. $data = $Memory | Select-Object 'Computer Name (AD)', 'Computer Name (LOCAL)', 'Total Ram', 'Free Ram', 'Used Ram', 'Percent Ram Free' | Sort-Object 'Computer Name (AD)', 'Computer Name (LOCAL)' $dgv_Me...
by angelofstealth
Thu Jan 31, 2019 12:35 pm
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 2532

Re: Datagridview - formatting just stopped working.

Appreciate the quick feedback, those solutions will work for me. Except the part of controlling the width of the columns I want to control, as I don't want to leave some datagridviews looking empty on display. For example the computer objects names having a set width on all datagridviews looks clean...
by angelofstealth
Thu Jan 31, 2019 10:20 am
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 2532

Re: Datagridview - formatting just stopped working.

I am able to get the formatting to work by setting the columns (Collection) under MISC (setting width) and loading my data into the grid by below.

Code: Select all

$MemoryResultsSort | foreach {
   $dgv_Memory.Rows.Add($_.'Computer Name (AD)', $_. 'Computer Name (LOCAL)') | out-null
}
by angelofstealth
Thu Jan 31, 2019 9:49 am
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 2532

Re: Datagridview - formatting just stopped working.

(Windows Version:)
Edition: Windows 10 Pro , Version: 1803 , OS Build: 17134.407
(Product name:)
Sapien PowerShell Studio 2019
(Product version:)
5.6.157.0
by angelofstealth
Thu Jan 31, 2019 9:07 am
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 2532

Datagridview - formatting just stopped working.

Loaded up my project today, ran the code/build and none of my datagridviews are applying any of formatting after loading the datasource. Anyone else ran into this issue/bug? Example of code down below, again I have changed nothing and it was working fine for weeks without issues. Tried recreating th...