Click here to Skip to main content
6,291,124 members and growing! (15,631 online)
Email Password   helpLost your password?
Languages » C# » Applications     Intermediate License: The Code Project Open License (CPOL)

TrayCalendar.NET

By MJDamron

A simple application that places a date in the system tray
C#, Windows, .NET, Visual Studio, Dev
Posted:18 Feb 2006
Updated:22 Jun 2006
Views:17,766
Bookmarked:14 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
8 votes for this article.
Popularity: 2.55 Rating: 2.82 out of 5
4 votes, 50.0%
1
1 vote, 12.5%
2
2 votes, 25.0%
3

4
1 vote, 12.5%
5

Introduction

Years ago when Chris Maunder published his MFC TrayCalendar app, I added a few features that I wanted such as being able to copy the current date to the clipboard, and a dialog to show the calendar so I copy date ranges and look at what date of the week my niece's birthday was on or what not.

I recently hacked up a .NET version of the app. The difference is that the system tray icons are created dynamically.

The code to convert an Image to an Icon actually came from the Web:

// Convert an image to an Icon
System.Drawing.Icon ImageToIcon(System.Drawing.Image image)
{
    return System.Drawing.Icon.FromHandle(((Bitmap) image).GetHicon());
}

I'd like to add other features like integrating with Outlook.

Update

I removed the timer control and used the Win32 SetTimer. I think there is an issue with the font too.

License

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

About the Author

MJDamron


Member
I enjoy messing with application development and some Web development technologies. Unfortunatly at this time, I have been unable to do as much with Web services as I would like. I would love to get a good job doing software development full time... Right now I work in Virginia as a contractor to the US Navy.

I am a Microsoft Cert. Professional and I got my 4 year BS degree.
Occupation: Web Developer
Location: United States United States

Other popular C# articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 1 of 1 (Total in Forum: 1) (Refresh)FirstPrevNext
GeneralThanks for a .NET 2.0 example of system tray icons PinmemberLarry Daniele15:03 28 Nov '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 22 Jun 2006
Editor: Deeksha Shenoy
Copyright 2006 by MJDamron
Everything else Copyright © CodeProject, 1999-2009
Web17 | Advertise on the Code Project