Click here to Skip to main content
12,458,499 members (58,517 online)
Click here to Skip to main content
Articles » Languages » C# » How To » Downloads

Stats

201.5K views
7.7K downloads
131 bookmarked
Posted

Adding a 'Minimize to tray'-button to a Form's caption bar

, 11 Jul 2005
An article on how to add a custom button to the caption bar.
bin
Debug
MinTrayBtnDemo.exe.manifest
Release
favicon.ico
MinTrayBtn Demo.bdsproj
MinTrayBtn Demo.cmbx
MinTrayBtn Demo.prjx
<VisualStudioProject xmlns:convtool="urn:convtool">
  <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="">
    <Build>
      <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="MinTrayBtnDemo" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="WinExe" PreBuildEvent="" PostBuildEvent="" RootNamespace="MinTrayBtn_Demo" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
        <Config Name="Release" AllowUnsafeBlocks="False" BaseAddress="285212672" CheckForOverflowUnderflow="False" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="False" FileAlignment="4096" IncrementalBuild="false" NoStdLib="False" NoWarn="" Optimize="True" OutputPath=".\bin\Release" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="False" WarningLevel="4" />
        <Config Name="Debug" AllowUnsafeBlocks="False" BaseAddress="285212672" CheckForOverflowUnderflow="False" ConfigurationOverrideFile="" DefineConstants="TRACE;DEBUG" DocumentationFile="" DebugSymbols="True" FileAlignment="4096" IncrementalBuild="false" NoStdLib="False" NoWarn="" Optimize="False" OutputPath=".\bin\Debug" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="False" WarningLevel="4" />
      </Settings>
      <References>
        <Reference Name="System" AssemblyName="System" HintPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" />
        <Reference Name="System.Data" AssemblyName="System.Data" HintPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" />
        <Reference Name="System.XML" AssemblyName="System.Xml" HintPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" />
        <Reference Name="System.Drawing" AssemblyName="System.Drawing" HintPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll" />
        <Reference Name="System.Windows.Forms" AssemblyName="System.Windows.Forms" HintPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Windows.Forms.dll" />
      </References>
    </Build>
    <Files>
      <Include>
        <File RelPath="WinForm.cs" BuildAction="Compile" />
        <File RelPath="AssemblyInfo.cs" BuildAction="Compile" />
        <File RelPath="MinTrayBtn.cs" BuildAction="Compile" />
        <File RelPath="MinTrayBtn_Demo.WinForm.resources" BuildAction="EmbeddedResource" />
      </Include>
    </Files>
  </CSHARP>
</VisualStudioProject>

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 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

Share

About the Author

Tyron Madlener
Austria Austria
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 12 Jul 2005
Article Copyright 2005 by Tyron Madlener
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid