Click here to Skip to main content
15,895,011 members
Articles / Desktop Programming / Windows Forms

Additional custom panel in Microsoft Outlook

Rate me:
Please Sign up or sign in to vote.
4.98/5 (44 votes)
25 Jun 2008CPOL7 min read 302.1K   4.1K   125  
An example of undocumented integration into the user interface of Microsoft Office applications.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{9DE7AC52-CDF9-4700-B594-93018C63B1EC}</ProjectGuid>
    <OutputType>Library</OutputType>
    <StartupObject>
    </StartupObject>
    <NoStandardLibraries>false</NoStandardLibraries>
    <AssemblyName>OutlookPanel</AssemblyName>
    <RootNamespace>OutlookPanel</RootNamespace>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <Optimize>false</Optimize>
    <OutputPath>.\bin\Debug\</OutputPath>
    <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <WarningLevel>4</WarningLevel>
    <IncrementalBuild>false</IncrementalBuild>
    <RegisterForComInterop>true</RegisterForComInterop>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugSymbols>false</DebugSymbols>
    <Optimize>true</Optimize>
    <OutputPath>.\bin\Release\</OutputPath>
    <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
    <DefineConstants>TRACE</DefineConstants>
    <WarningLevel>4</WarningLevel>
    <IncrementalBuild>false</IncrementalBuild>
    <RegisterForComInterop>true</RegisterForComInterop>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Extensibility, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <Reference Include="Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\..\Components\Office 2003 PIAs\Microsoft.Office.Interop.Outlook.dll</HintPath>
    </Reference>
    <Reference Include="OFFICE, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\..\Components\Office 2003 PIAs\OFFICE.DLL</HintPath>
    </Reference>
    <Reference Include="System">
      <HintPath>System.dll</HintPath>
      <Name>System</Name>
    </Reference>
    <Reference Include="System.Data">
      <HintPath>System.Data.dll</HintPath>
      <Name>System.Data</Name>
    </Reference>
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.XML">
      <HintPath>System.XML.dll</HintPath>
      <Name>System.XML</Name>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="AssemblyInfo.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="PanelContainer.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="PanelContainer.Designer.cs">
      <DependentUpon>PanelContainer.cs</DependentUpon>
    </Compile>
    <Compile Include="PanelManager.cs" />
    <Compile Include="Connect.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="MyPanel.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="MyPanel.Designer.cs">
      <DependentUpon>MyPanel.cs</DependentUpon>
    </Compile>
    <Compile Include="SafeNativeMethods.cs" />
    <Compile Include="SubclassedWindow.cs" />
    <Compile Include="OutlookThemes.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="RegisterAddin.reg" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="PanelContainer.resx">
      <DependentUpon>PanelContainer.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="MyPanel.resx">
      <DependentUpon>MyPanel.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <Content Include="ReadMe.txt" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
  <PropertyGroup>
    <PreBuildEvent>
    </PreBuildEvent>
    <PostBuildEvent>
    </PostBuildEvent>
  </PropertyGroup>
  <ProjectExtensions>
    <VisualStudio>
    </VisualStudio>
  </ProjectExtensions>
</Project>

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)


Written By
Software Developer (Senior) MEMOS Software (www.memos.cz)
Czech Republic Czech Republic
I started developing software in Quick Basic on my very first PC running 8086 CPU @ 8MHz. Then I moved to Visual Basic, followed by MFC and for last 4 years i am stuck with C# and Microsoft .NET. Now I work as a senior developer for MEMOS Software. My hobby is Office integration, especially Microsoft Outlook.


Check out my blog at
http://blog.memos.cz

Comments and Discussions