Click here to Skip to main content
15,860,861 members
Articles / Programming Languages / Visual Basic
Article

Windows Shutdown Timer with a One Minute Warning

Rate me:
Please Sign up or sign in to vote.
4.41/5 (26 votes)
27 Oct 2005Apache1 min read 100.3K   3.7K   48   13
Allows the user to shutdown Windows at a time the user sets.

Sample Image - ShutdownTimer.jpg

Introduction

What if you can initiate the Windows shutdown sequence at a specific time you set, without the need for you to be physically present in front of the computer? Well, this tool allows you to do just that! You can shutdown, logoff, hybernate, or stand by your Windows PC at any time you wish to.

Plus, it gives you a one minute warning in case you change your mind!

Motivation

I often listen to slow classical music while going to bed. 9/10 times, I fall asleep without shutting down my PC. So I looked for a tool to shutdown my PC at a time I set... Most of the applications I found weren't freeware. So I decided to write my own application. And here it is!

Two ways to initiate the shutting down

  1. User can set a time in the clock (E.g.: shutdown at 22:00 hrs.).
  2. User can start a count down timer (E.g.: shutdown in 10 mins.).

Code Re-used

Although I designed and wrote the code, I re-used some of the code from other projects published here and else where.

  • TaskbarNotifier is a class I downloaded from CodeProject which shows a MSN like popup to give the user a one minute warning. I changed the display attributes to suit my popup window size and colours.

    Image 2

  • The WindowsController class was downloaded from here.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Web Developer
Japan Japan
I'm Software engineer working for Ephox Corporation, Brisbane Australia.

Comments and Discussions

 
GeneralMy vote of 5 Pin
valmik ramesh chhadikar1-Jul-10 23:17
valmik ramesh chhadikar1-Jul-10 23:17 
GeneralMy vote of 2 Pin
Whockie13-Oct-09 8:13
Whockie13-Oct-09 8:13 
Generalhelp me pleaseeeeeee Pin
Carmen_yani12-Sep-09 15:11
Carmen_yani12-Sep-09 15:11 
GeneralNeed some help Pin
Phope26-Apr-07 10:33
Phope26-Apr-07 10:33 
AnswerRe: Need some help Pin
Suneth Mendis30-Apr-07 18:54
Suneth Mendis30-Apr-07 18:54 
Generaldissapointed Pin
a ghost30-Jan-07 3:28
a ghost30-Jan-07 3:28 
QuestionWill it work when windows log off automatically? Pin
major_mortimer22-Aug-06 4:47
major_mortimer22-Aug-06 4:47 
GeneralDemo Error Pin
WesleyHowe11127-Oct-05 2:02
WesleyHowe11127-Oct-05 2:02 
Generalshutdown -i Pin
Rei Miyasaka21-Oct-05 23:04
Rei Miyasaka21-Oct-05 23:04 
GeneralAMP WinOFF Pin
John N25-Oct-05 13:34
John N25-Oct-05 13:34 
GeneralRe: shutdown -i Pin
Suneth Mendis27-Oct-05 17:55
Suneth Mendis27-Oct-05 17:55 
GeneralA good utility... Pin
Jun Du21-Oct-05 5:51
Jun Du21-Oct-05 5:51 
GeneralRe: A good utility... Pin
Suneth Mendis27-Oct-05 17:45
Suneth Mendis27-Oct-05 17:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.