Hi guys,
I am currently working on a Multi-Form project with PowerShell Studio 2016 and am looking into having multiple form connections.
I would want the current active form to close once the linked form is opened.
For example:
1. I click on the AD Account Setup from my "MainForm.psf".
2. The "AD Account Setup.psf" form opens and the "MainForm.psf" closes.
I've searched the forums but cannot seem to find anything related to this exact behavior.
Thanks in advance for the tips
Multi-Form "Close current form" script
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Multi-Form "Close current form" script
Hiding the form will close it and the child form.
PowerShell does not use Modeless forms. It uses only modal dialogs.
I recommend using tabs or panels to change the display. Using panels you can change the contents of a form and it can hide the previous contents.
PowerShell does not use Modeless forms. It uses only modal dialogs.
I recommend using tabs or panels to change the display. Using panels you can change the contents of a form and it can hide the previous contents.
Re: Multi-Form "Close current form" script
I was just about to ask the same question.
I'm creating a 'Wizard' type project which displays several forms one after the other.
It appears that I cannot close the parent when calling the child so I'll live with that.
However, If I'm on, say, my fifth wizard form and they press Exit, can I close all child forms and the original parent form at once?
Thanks
David
I'm creating a 'Wizard' type project which displays several forms one after the other.
It appears that I cannot close the parent when calling the child so I'll live with that.
However, If I'm on, say, my fifth wizard form and they press Exit, can I close all child forms and the original parent form at once?
Thanks
David
Re: Multi-Form "Close current form" script
Thanks - I was stuck in the old multi form wizard way of thinking.
I just had a look at the Wizard template and it looks cool and appears to do everything I need.
I just had a look at the Wizard template and it looks cool and appears to do everything I need.