Click here to Skip to main content
13,196,946 members (55,744 online)
Click here to Skip to main content
Add your own
alternative version

Stats

32.1K views
686 downloads
23 bookmarked
Posted 18 Feb 2006

TrayCalendar.NET

, 22 Jun 2006
Rate this:
Please Sign up or sign in to vote.
A simple application that places a date in the system tray

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)

Share

About the Author

MJDamron
Software Developer
United States United States
I enjoy messing with application development and some Web development technologies. Right now I work in Virginia as a contractor to the government.

I am a Microsoft Cert. Professional and I got my 4 year BS degree.

See web site for resume and other code samples.

You may also be interested in...

Comments and Discussions

 
GeneralThanks for a .NET 2.0 example of system tray icons Pin
Larry Daniele28-Nov-06 14:03
memberLarry Daniele28-Nov-06 14:03 

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171019.1 | Last Updated 22 Jun 2006
Article Copyright 2006 by MJDamron
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid