Page 1 of 1

Showing multiple child forms

Posted: Sun Jul 28, 2019 5:21 pm
by Lembasts
Greetings,

I have a mainform with several buttons. Each button launches another form using Show-<form>_psf.
When I launch a child form I cannot go back to the main form to launch another form.
Is it possible to launch multiple child forms?
Thanks
David

Re: Showing multiple child forms

Posted: Sun Jul 28, 2019 6:10 pm
by jvierra
Not by any normal means. PowerShell only supports modal dialogs and not main forms. You can launch a separate, independent form By using a runspace.

Re: Showing multiple child forms

Posted: Sun Jul 28, 2019 8:54 pm
by jvierra
I dug out an old demo project and tested it. It shows how to make a child form run as an independent form that does not block the main form.