Click here to Skip to main content
15,891,864 members
Articles / Desktop Programming / Windows Forms

Owner Drawn Component - Extended MenuItem

Rate me:
Please Sign up or sign in to vote.
4.50/5 (8 votes)
18 Mar 2007CPOL5 min read 43.8K   1.1K   46  
This is the second installment in the Owner Drawn Controls' series of articles
<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>{09CEE6FE-6DD7-4957-ABB5-A22B4C8FE1B0}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>MenuTest</RootNamespace>
    <AssemblyName>MenuTest</AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="About.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="About.Designer.cs">
      <DependentUpon>About.cs</DependentUpon>
    </Compile>
    <Compile Include="Form1.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Form1.Designer.cs">
      <DependentUpon>Form1.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="Form1.resx">
      <SubType>Designer</SubType>
      <DependentUpon>Form1.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="XMenuItem.cs">
      <SubType>Component</SubType>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="About.resx">
      <SubType>Designer</SubType>
      <DependentUpon>About.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Resources\40.png" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\OK CheckBox.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Undo.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Copy.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Cut.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Delete.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Paste.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Edit.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\folder_web.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\folder.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\folder_apps.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\folder_fav.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\folder_files.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\folder_music.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\folder_pictures.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\desktop.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Indicator.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\House.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Group.ico" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\Uawe.ico" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Resources\Menu.ico" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Docs\ExtendedMenuItem Article.html" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</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
Retired
United States United States
Currently enjoying retirement and working on projects without pressure, deadlines or any kind of management.

Comments and Discussions