I’m making a new WPF application and I need to be able to minimize the application and have nice and snug in the system tray, right beside the clock (or in that general area).
This has to work on Windows XP, Vista and 7. I don’t have to support older versions of Windows.
What’s the simplest way to achieve this if I’m using .NET 4?
Example in MSDN forum
Here’s a quick example to show how to minimize to the notification area. You need to add references to the
System.Window.FormsandSystem.Drawingassemblies.