Click here to Skip to main content
15,886,639 members
Articles / Programming Languages / C#

Minimize window to system tray

Rate me:
Please Sign up or sign in to vote.
3.94/5 (44 votes)
8 Jul 2008CPOL2 min read 231.2K   10.7K   78  
This article describes how you can write some simple code for minimizing a window to the system tray.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimizeToTray", "testApp\MinimizeToTray.csproj", "{B70FE4C1-6092-45FF-A64A-9DFD2597CE66}"
EndProject
Global
	GlobalSection(DPCodeReviewSolutionGUID) = preSolution
		DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
	EndGlobalSection
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{B70FE4C1-6092-45FF-A64A-9DFD2597CE66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{B70FE4C1-6092-45FF-A64A-9DFD2597CE66}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{B70FE4C1-6092-45FF-A64A-9DFD2597CE66}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{B70FE4C1-6092-45FF-A64A-9DFD2597CE66}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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



Comments and Discussions