Search found 67 matches

by angelofstealth
Wed Feb 06, 2019 8:09 pm
Forum: PowerShell GUIs
Topic: Jobtracker - startjob working, want to update progressbar as coms are processed
Replies: 7
Views: 525

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 1:48 pm
Forum: PowerShell GUIs
Topic: Jobtracker - startjob working, want to update progressbar as coms are processed
Replies: 7
Views: 525

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 10:17 am
Forum: PowerShell GUIs
Topic: Jobtracker - startjob working, want to update progressbar as coms are processed
Replies: 7
Views: 525

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 4:10 pm
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 610

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 1:35 pm
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 610

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 11:20 am
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 610

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 10:49 am
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 610

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 10:07 am
Forum: PowerShell GUIs
Topic: Datagridview - formatting just stopped working.
Replies: 8
Views: 610

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...
by angelofstealth
Fri Nov 23, 2018 6:54 am
Forum: PowerShell GUIs
Topic: Updated Client - drag and drop control issue
Replies: 4
Views: 598

Re: Updated Client - drag and drop control issue

Deleting the temp .psf files resolved my issue. Thank you for the detailed troubleshooting notes. Much appreciated, have a great day!
by angelofstealth
Thu Nov 22, 2018 2:54 pm
Forum: PowerShell GUIs
Topic: Updated Client - drag and drop control issue
Replies: 4
Views: 598

Re: Updated Client - drag and drop control issue

If I create a new project, i don't have the issue. Just with existing project.