The code is not helpful as it just displays a form. The "Main" function will never be called.
It would be better if you posted the PSF file as an attachment.
Search found 15379 matches
- Fri Mar 24, 2023 6:18 pm
- Forum: PowerShell GUIs
- Topic: GUI help
- Replies: 1
- Views: 309
- Thu Mar 23, 2023 6:01 pm
- Forum: PowerShell
- Topic: Performing Get-Service with failback using Get-WMIObject ?
- Replies: 3
- Views: 684
Re: Performing Get-Service with failback using Get-WMIObject ?
Can be firewall or other network issues. PowerShell has nothing to do with the errors. Who is you network engineer. Just having an admin account does not guarantee access to the service control manager and the RPC ports for WMI. Client computer firewalls block this access by default. Sometimes the s...
- Thu Mar 23, 2023 5:29 pm
- Forum: PowerShell
- Topic: Performing Get-Service with failback using Get-WMIObject ?
- Replies: 3
- Views: 684
Re: Performing Get-Service with failback using Get-WMIObject ?
You do not have access rights on the services and on WMI. Please ask you server administrator for help with this.
- Fri Mar 17, 2023 6:36 pm
- Forum: PowerShell GUIs
- Topic: Using DateTimePicker value with StartJob button
- Replies: 2
- Views: 1343
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: 163
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: 5819
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: 5819
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: 5819
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: 5819
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: 5819
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...