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 2 years and 8 months 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.
I've got a button that installs RSAT tools (when the WinForm is run as Admin).
When running the command in the ISE (VSCode) it displays a progress bar in VSCode. Is it possible to have that shown in the WinForm? I've added progressbaroverlay1 to the Form at the bottom, but not sure how to "call" it (if even possible). I can add a loop function to check if it's installed and when it is, report via a pop-up, but a progress bar would be cleaner.
I've got a progress bar working for "progress scripts". I was looking to output the progress bar when running "import-module activedirectory", like it does in the ISE.
And same with my OP question, that action, in the ISE has a "progress bar", just hoping to capture in the form.
In WINFORMS when first launching the form, it pops-out in a separate window (natively, nothing I've added to my scripts). Just hoping I could bring that "into" the actual form itself. May not be possible.
You can't with the AD module because it will be preloaded by the time the form executes. Import-Ad only takes a sedcond or less. If you import it on the froms "Shown" even then you may get a ProgressBar on slower computers but you won't get it on the "Load" even or earlier.
This topic is 2 years and 8 months 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.