Close a WPF GUI after a countdown with PowerShell

In this post, I will show you a way to display a GUI and auto close it after a specific time.
Why ? You want for instance to display a GUI and close it automatically after 6 seconds.

How to get the sample ?

How it looks like ?
In the below sample I created a status bar Control then I added a label Control in it.
The label Control will display the remaining time to display the GUI.

How it works ?
See below how I added the label in my status bar in the XAML.

See below how I create the countdown and display it in from the PS1 file

Share this

Related Posts

Next Post »