It gets a little complicated. Here are some resources that should help you:

http://poshcode.org/5520
https://www.sapien.com/blog/2012/05/16/powershell-studio-creating-responsive-forms/
http://stackoverflow.com/questions/14401704/update-winforms-not-wpf-ui-from-another-thread
http://learn-powershell.net/2012/10/14/powershell-and-wpf-writing-data-to-a-ui-from-a-different-runspace/


From: [email protected] [mailto:[email protected]] On 
Behalf Of Mote, Todd
Sent: Thursday, February 25, 2016 5:57 PM
To: [email protected]
Subject: [powershell] GUIs and runspaces

So I've written a fancy PowerShell script and given it a GUI and it works 
great.  As I add more features to it though, I find that it’s taking longer and 
longer to run and thought I would try to get it to run in a separate thread to 
free up the GUI.  I’m not finding many resources to help me learn how to do 
that. Can anybody point me to any?  I know about sunspaces, bur have not had 
any luck with getting them to work.  Help?

Sent from my Windows 10 phone


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to