Click here to Skip to main content
15,313,596 members
Articles / Mobile Apps / Windows Mobile
Posted 31 Dec 1999


91 bookmarked

Tray Calendar

Rate me:
Please Sign up or sign in to vote.
4.81/5 (25 votes)
2 Aug 2003CPOL
A simple application that places a date in the system tray

Sample Image - traycalendar.gif


Tray Calendar is a freeware utility that I wrote after being amazed that

  1. Microsoft did not bother to offer us a calender in the tray, and
  2. People were charging good money for tiny little tray apps.

The idea is simple: Put the day of the month next to the clock in the system tray. It tells you todays date, and will update the number displayed when the date changes. 20 seconds after it starts it will reshuffle itself so that it is the right-most icon in the tray. This is useful if you put it in the "Startup" folder (so it starts automatically) becuase during startup other icons such as virus checkers and such may get between the calender and the clock.

The only options are that you can disable date checking, disable auto-shuffle, and you can change the auto-shuffle time. Right click on the date icon for the options dialog.

The class is based on my CSystemTray class, and serves as a fairly quick and dirty example of how to use it.

Tray Calendar now works in CE 2.0-2.11 and VC++ .NET


  • 6 Apr 2002 - app now checks the date when the computer comes out of hibernation or suspension (Thanks to Derek Waters)
  • 3 Aug 2003 - Updated SystemTray class now recreates thetray icon after Explorer crashes and restarts.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Chris Maunder
Founder CodeProject
Canada Canada
Current passion project: CodeProject SenseAI. Please join in!

Chris is the Co-founder of the popular code-sharing site, the digital advertising agency and the content marketing agency ContentLab.IO.

He's been programming way too long and has been, in various guides, an astrophysicist, mechanic, mathematician, physicist, breeder of carnivorous plants, hydrologist, geomorphologist, defence intelligence researcher and then, when all that got a bit rough on the nerves, a serial entrepreneur.

Chris has programmed everything from FORTRAN on a CRAY to Python on a Pi, but generally leans on TypeScript, C#, and SQL for the front, middle and back bits of his applications. His current focus is on ensuring developers know enough about Artificial Intelligence to be dangerous.

Comments and Discussions

GeneralExcuse~ Why can't I download the source code ? Thanks~ Pin
anmytry5-Jan-08 15:32
Memberanmytry5-Jan-08 15:32 
GeneralMake it use 'long date' format as defined in Regional and Language Options [modified] Pin
ahtiger22-Nov-07 23:58
Memberahtiger22-Nov-07 23:58 
GeneralHelp Required Pin
Sreekanth Muralidharan20-Dec-05 1:49
MemberSreekanth Muralidharan20-Dec-05 1:49 
GeneralRe: Help Required Pin
mike.sun11-Oct-06 23:12
Membermike.sun11-Oct-06 23:12 
Generalthankx for bug fix Pin
vikas amin24-Aug-05 4:41
Membervikas amin24-Aug-05 4:41 
GeneralLocal days and months names... Pin
Tomas Jakl8-Jul-05 4:50
MemberTomas Jakl8-Jul-05 4:50 
Generalchange version number Pin
cebusong16-Jul-04 8:49
Membercebusong16-Jul-04 8:49 
QuestionHo to activate the application from the Explirer? Pin
Plamen Petrov27-May-04 3:45
professionalPlamen Petrov27-May-04 3:45 
Answercheck out YahooPOPs source code Pin
cebusong16-Jul-04 8:06
Membercebusong16-Jul-04 8:06 
GeneralTray Calendar doesn't update Pin
KimN26-Apr-04 4:38
MemberKimN26-Apr-04 4:38 
GeneralRe: Tray Calendar doesn't update Pin
cebusong16-Jul-04 8:11
Membercebusong16-Jul-04 8:11 
GeneralShuffle works in reverse Pin
KimN23-Apr-04 5:35
MemberKimN23-Apr-04 5:35 
GeneralCompilation Fails with Visual C++ v6.0 Pin
StevenYoungs4-Aug-03 2:17
MemberStevenYoungs4-Aug-03 2:17 
GeneralThanks!! Pin
WREY4-Aug-03 19:30
MemberWREY4-Aug-03 19:30 
QuestionWindows CE 2.11 also? Pin
wrenhal13-Jul-03 3:50
Memberwrenhal13-Jul-03 3:50 
GeneralNO problem with Tray Calendar download... Pin
John H. Doyle2-Mar-03 5:09
MemberJohn H. Doyle2-Mar-03 5:09 
GeneralTray Calendar Download Problem Pin
John H. Doyle2-Mar-03 5:06
MemberJohn H. Doyle2-Mar-03 5:06 
QuestionHow to acees the PRINTER via my eVC++ application Pin
AKSIVAKUMAR26-Feb-03 21:58
MemberAKSIVAKUMAR26-Feb-03 21:58 
QuestionHow to send FAX via my eVC++ application Pin
AKSIVAKUMAR26-Feb-03 21:42
MemberAKSIVAKUMAR26-Feb-03 21:42 
GeneralAdding to startup Pin
Jack_pt22-Feb-03 3:43
MemberJack_pt22-Feb-03 3:43 
GeneralRe: Adding to startup Pin
AKSIVAKUMAR26-Feb-03 21:37
MemberAKSIVAKUMAR26-Feb-03 21:37 
GeneralMetric Time in tray Pin
23-Jul-02 16:53
suss23-Jul-02 16:53 
GeneralRe: Metric Time in tray Pin
Member 16157229-Jan-03 23:13
MemberMember 16157229-Jan-03 23:13 
GeneralXp Pin
Swinefeaster14-Apr-02 20:10
MemberSwinefeaster14-Apr-02 20:10 
GeneralRe: Xp Pin
Chris Maunder14-Apr-02 20:40
cofounderChris Maunder14-Apr-02 20:40 

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.