5,693,062 members and growing! (16,205 online)
Email Password   helpLost your password?
Languages » C# » General     Intermediate

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: 15,476
Bookmarked: 9 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
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
0 votes, 0.0%
4
1 vote, 12.5%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article

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 calender so I copy copy date ranges and look what date of the week my neice'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 that 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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

MJDamron


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
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 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 iconsmemberLarry 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:
Copyright 2006 by MJDamron
Everything else Copyright © CodeProject, 1999-2008
Web19 | Advertise on the Code Project