Windows forms, by hand.  (I really need a copy of visual studio or powershell 
studio, or something..  ☺ )

Thanks so much guys.  I had totally forgotten about this list until I saw the 
error handling thread.  I’d found http://poshcode.org/5520 and got some of that 
to work, partly.  I’ll start looking through these in earnest, but it looks 
like exactly what I need.  my ui is pretty complicated and lots of elements do 
or don’t do things depending on data in other elements, so I’m not sure how it 
will go, but I’ll give it a try.

Xaml looks somewhat simpler to write, but I’ll save that for another day.  ☺




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

Is this WPF or Windows Forms?

When I started writing WinForms, this blog post helped me learn about different 
runspaces and how to make the forms more responsive:  
https://www.sapien.com/blog/2012/05/16/powershell-studio-creating-responsive-forms/

If you are doing it in WPF, I have a series of posts on UI development: 
http://www.ephingadmin.com/better-know-a-powershell-ui/
The "Quack like a duck" post talks about different threads and uses PoshRSJob 
(3rd party cmdlet on GitHub) to do the threading.

Boe Prox (the author of PoshRSJob) has a lot of good information on this also. 
Here's a post about writing data from one thread to another:
http://learn-powershell.net/2012/10/14/powershell-and-wpf-writing-data-to-a-ui-from-a-different-runspace/

Let me know if you need any other resources!


On Thu, Feb 25, 2016 at 4:59 PM Mote, Todd 
<[email protected]<mailto:[email protected]>> wrote:
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

================================================
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