How to create a 'Wait cursor' (hourglass)

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 8 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
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: How to create a 'Wait cursor' (hourglass)

Post by jvierra »

I wasn't proposing it for now but, because you mentioned runspaces, I though I would show you that PowerShell has runspaces on steroids and more wrapped up into workflows.

Workflows have been part of Windows for almost 20 years. They have been hard to access from script and few wanted to learn the WF tools. Now this highly advanced, industry wide technology is accessible from PowerShell. If you do any kind of repeated remote queries or tasks then WF is a useful tool.

WF and DSC are part of WMF now and are delivered and updated automatically via Windows Update. WF should now be PowerShell version independent although the syntax is PS dependent.

Here is the WWF (not World Wresting but it is a world wrestler - Windows Workflow Foundation.) https://msdn.microsoft.com/en-us/vstudio/jj684582.aspx

PowerShell simplifies this Windows subsystem and makes it accessible although, I am sure, we will see an expansion of WWF into PowerShell as time passes. Right now the dudes at MS are completing DSC and trying to get WMF 5 out the door. It will - or should - change the world.

Go team!

Anyway - for you and any stumbling-on; this info might be useful.
This topic is 8 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