Hi,
Few days back i was writing an powershell GUI based script, in that script I need to add a clock.
First i thought how can i make a clock? I was thinking about an hour and then i got an idea. why not to use timer object and use it for creating an clock.
This is what i have done to create a GUI clock.
You can download the script from here: http://gallery.technet.microsoft.com/scriptcenter/Samay-Powershell-Digital-45acb9d2
Download Link : https://dl.dropboxusercontent.com/u/17858935/Samay-Digital_Clock.zip
Few days back i was writing an powershell GUI based script, in that script I need to add a clock.
First i thought how can i make a clock? I was thinking about an hour and then i got an idea. why not to use timer object and use it for creating an clock.
This is what i have done to create a GUI clock.
- Created a blank form on “Powershell Studio”
- Add a blank label to it
- Added a time object to it.
- In timer object property , i set Enabled to true, and interval to 1 {which is very low because the it is in milliseconds}
- Double click on “Timer” object and i added the below code.
- In above code , i am just converting, Get-Date to string.
- and when you run scrip the outcome is running Powershell Digital clock.
You can download the script from here: http://gallery.technet.microsoft.com/scriptcenter/Samay-Powershell-Digital-45acb9d2
Thanks
Aman Dhally
Download Link : https://dl.dropboxusercontent.com/u/17858935/Samay-Digital_Clock.zip
Nice post. Got a lot of important stuff from this blog.
ReplyDeletedba kings
Thanks a lot.
DeleteI glad that you like the post and thanks for the nice word.
thanks
aman