Search found 15436 matches
- Fri Mar 17, 2023 6:36 pm
- Forum: PowerShell GUIs
- Topic: Using DateTimePicker value with StartJob button
- Replies: 2
- Views: 1779
Re: Using DateTimePicker value with StartJob button
You cannot use json directly in PowerShell. You can create strings contain json. There is not enough information to understand what you are doing. "Jobs" are just PowerShell code. This is how to create a json string in PowerShell: $jstr = @" { "Attribute": "Timestamp&qu...
- Fri Mar 17, 2023 5:15 pm
- Forum: PowerShell GUIs
- Topic: Textbox & Dropbox Border
- Replies: 2
- Views: 592
Re: Textbox & Dropbox Border
For buttons use "FlatSty;e" proprty. For "Textbox" use "BorderStyle" property.
Tabs cannot be set to independent colors.
Tabs cannot be set to independent colors.
- Tue Mar 14, 2023 10:13 pm
- Forum: PowerShell GUIs
- Topic: Outputting to multiple textboxes while job is running
- Replies: 11
- Views: 6622
Re: Outputting to multiple textboxes while job is running
Here is an old piece of code that shows how to return objects to the UpdateScript and how to use the objects to output to a textbox.
- Tue Mar 14, 2023 9:53 pm
- Forum: PowerShell GUIs
- Topic: Outputting to multiple textboxes while job is running
- Replies: 11
- Views: 6622
Re: Outputting to multiple textboxes while job is running
Here is a simple example of how to use the UpdateScript block.
- Tue Mar 14, 2023 9:49 pm
- Forum: PowerShell GUIs
- Topic: Outputting to multiple textboxes while job is running
- Replies: 11
- Views: 6622
Re: Outputting to multiple textboxes while job is running
Sorry but you didn't ask a question. You just said that the UpdateScript was not working. You have nothing being returned incrementally from the JobScript so you will likely never see the UpdateScript executed.JobTracker control does and why and how. https://info.sapien.com/index.php/guis/gui-advanc...
- Tue Mar 14, 2023 7:56 pm
- Forum: PowerShell GUIs
- Topic: Outputting to multiple textboxes while job is running
- Replies: 11
- Views: 6622
Re: Outputting to multiple textboxes while job is running
Why would you use a job to return one thing from a remote computer?
I think you do not understand that jobs are for long running tasks that return nothing or return incremental results.
I think you do not understand that jobs are for long running tasks that return nothing or return incremental results.
- Tue Mar 14, 2023 5:36 pm
- Forum: PowerShell GUIs
- Topic: Outputting to multiple textboxes while job is running
- Replies: 11
- Views: 6622
Re: Outputting to multiple textboxes while job is running
What is it you are trying to output? Don't receive the job just report on the properties of the job object. Why are you creating an object from an object? Note that a job only returns items if you output them from the job. If the job does one thing you will only get one thing back. Your JobScript mu...
- Tue Mar 14, 2023 2:52 pm
- Forum: PowerShell GUIs
- Topic: DataGridView & checkbox
- Replies: 8
- Views: 2679
Re: DataGridView & checkbox
An example of what? You can create rows and set cell values or use an array to assign all cells.
If you right-click any control in the toolbox it will show you links to the documentation and example code.
If you right-click any control in the toolbox it will show you links to the documentation and example code.
- Tue Mar 14, 2023 2:50 pm
- Forum: PowerShell GUIs
- Topic: Outputting to multiple textboxes while job is running
- Replies: 11
- Views: 6622
Re: Outputting to multiple textboxes while job is running
You can output anywhere in the "UpdateScript".
- Tue Mar 14, 2023 6:13 am
- Forum: PowerShell GUIs
- Topic: DataGridView & checkbox
- Replies: 8
- Views: 2679
Re: DataGridView & checkbox
Look at the definitions for the "Row.Add" methods. What you are doing is not how to add a row.