Run commands from child form

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
jonathan.byers@gd-ms.com
Posts: 2
Last visit: Tue Feb 06, 2024 5:41 am

Run commands from child form

Post by jonathan.byers@gd-ms.com »

I have a script that we setup as a guided server install to install various software and settings. We want to move the software installs to a child form. For example, we want to have the user click "Install ProductA", a child form pops up saying "Installing product, please wait...", copies the install files to the local machine, then runs the install. If I call the child form with no commands, I see the form. If I add the commands to copy the files and run the install, I don't see the form until after it completes. I don't have the commands in the Load section of the child form.

Please help
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Run commands from child form

Post by jvierra »

Place commands in "Shown" event.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked