_How do i perform a cleanup routine when the childform is closing?
So i need to pass a unique id to the childform as a argument and pass that to remove-job when the child form is closing?
Or does all the jobs disappear when the mainform closeds?
Search found 103 matches
- Tue Jan 08, 2019 2:20 am
- Forum: PowerShell GUIs
- Topic: Multi-Form - credential passing
- Replies: 7
- Views: 2613
- Fri Jan 04, 2019 2:57 am
- Forum: PowerShell GUIs
- Topic: Multi-Form - credential passing
- Replies: 7
- Views: 2613
Re: Multi-Form - credential passing
it work like a charm... have work a little with your demo...is there a way open more then one sub psf form? right now it lock so you need to close a open subform before you can start a new subform? $buttonCallChildForm_Click={ $sb = ${function:Show-ChildForm_psf} $obj = [pscustomobject]@{Text = 'Hel...
- Wed Jan 02, 2019 11:50 pm
- Forum: PowerShell GUIs
- Topic: Multi-Form - credential passing
- Replies: 7
- Views: 2613
Re: Multi-Form - credential passing
Have sleep on this and come up with to ways 1. Call another exe with start-process -credential a single form exe created from psf can you pass param to this exe or do you need to build it as a project? 2. Convert the project main to support param. Main call it self with start-process -credential but...
- Tue Jan 01, 2019 11:00 pm
- Forum: PowerShell GUIs
- Topic: Multi-Form - credential passing
- Replies: 7
- Views: 2613
Multi-Form - credential passing
Hi working on a tool :D I want this functionality: Main form get user credential : get-credential Launch a child form with these credential. So somehow do a runas on the childForm would be great but how? $buttonCallChildForm_Click={ #TODO: Place custom script here if((Show-ChildForm_psf) -eq 'OK') {...
- Wed Dec 12, 2018 12:39 am
- Forum: PowerShell GUIs
- Topic: Refresh Combobox function
- Replies: 6
- Views: 4239
Re: Refresh Combobox function
hmm after i removed the "$combobox_Products_TextChanged" section i can type in normaly? But i want the textchanged event on the combobox so i can check if the folder exist? think i found the bug I clear the combobox under textchange $combobox_Products.Items.Clear() changed it to $combobox_...
- Wed Dec 12, 2018 12:32 am
- Forum: PowerShell GUIs
- Topic: Refresh Combobox function
- Replies: 6
- Views: 4239
Re: Refresh Combobox function
Is it this property?
I have the same on the vendor combo box and i can type in fine there?
I have the same on the vendor combo box and i can type in fine there?
- Tue Dec 11, 2018 2:25 pm
- Forum: PowerShell GUIs
- Topic: Refresh Combobox function
- Replies: 6
- Views: 4239
Re: Refresh Combobox function
I did some more work on the application but stuck on this wierd behavior. The combobox vendor works fine when typing but the combobox product type ind wierd? I recorded it in the gif. I type in test but get it backwards? as tset? have compare the to combobox and cant spot the different? is the psf f...
- Sat Dec 08, 2018 1:24 pm
- Forum: PowerShell GUIs
- Topic: Refresh Combobox function
- Replies: 6
- Views: 4239
Re: Refresh Combobox function
wierd i did the same thing but got error must been an typo
- Sat Dec 08, 2018 3:32 am
- Forum: PowerShell GUIs
- Topic: Refresh Combobox function
- Replies: 6
- Views: 4239
Refresh Combobox function
Hi am tryin to create a function to update combobox but stuck in how to define the combobox Update-ComboBox $combobox (Get-ChildItem "$Path" -Directory) "Name How to pass the param $combobox to Update-ComboBox Comboxbox and keep the $ RefreshCombobox -Combobox combobox_Vendor -Path &q...
- Sun Nov 25, 2018 12:40 pm
- Forum: PowerShell GUIs
- Topic: GUI for managing system services (in process)
- Replies: 7
- Views: 2106
Re: GUI for managing system services (in process)
How can you see if a psf is corrupt or damage.