Windows Forms designer sample demoed in VB (VBWinFormDesigner)

The code sample demonstrates various typical programming scenarios in Windows Forms Designer

VB.NET (85.1 KB)
 
 
 
 
 
4 Star
(1)
17,172 times
Add to favorites
4/5/2011
E-mail Twitter del.icio.us Digg Facebook
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{15B1EEF5-A5EE-43E0-8AE2-D6C09426E8C8}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <StartupObject>VBWinFormDesigner.My.MyApplication</StartupObject>
    <RootNamespace>VBWinFormDesigner</RootNamespace>
    <AssemblyName>VBWinFormDesigner</AssemblyName>
    <FileAlignment>512</FileAlignment>
    <MyType>WindowsForms</MyType>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <OptionExplicit>On</OptionExplicit>
    <OptionCompare>Binary</OptionCompare>
    <OptionStrict>Off</OptionStrict>
    <OptionInfer>On</OptionInfer>
    <ApplicationManifest>My Project\app.manifest</ApplicationManifest>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\Debug\</OutputPath>
    <DocumentationFile>VBWinFormDesigner.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DocumentationFile>VBWinFormDesigner.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Design" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Import Include="Microsoft.VisualBasic" />
    <Import Include="System" />
    <Import Include="System.Collections" />
    <Import Include="System.Collections.Generic" />
    <Import Include="System.Data" />
    <Import Include="System.Drawing" />
    <Import Include="System.Diagnostics" />
    <Import Include="System.Windows.Forms" />
    <Import Include="System.Linq" />
    <Import Include="System.Xml.Linq" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Adornment\UC_AdornmentPainting.Designer.vb">
      <DependentUpon>UC_AdornmentPainting.vb</DependentUpon>
    </Compile>
    <Compile Include="Adornment\UC_AdornmentPainting.vb">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="CustomEditors\EditorForm.Designer.vb">
      <DependentUpon>EditorForm.vb</DependentUpon>
    </Compile>
    <Compile Include="CustomEditors\EditorForm.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="CustomEditors\UC_CustomEditor.Designer.vb">
      <DependentUpon>UC_CustomEditor.vb</DependentUpon>
    </Compile>
    <Compile Include="CustomEditors\UC_CustomEditor.vb">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="CustomPropertyTab\UC_CustomPropertyTab.Designer.vb">
      <DependentUpon>UC_CustomPropertyTab.vb</DependentUpon>
    </Compile>
    <Compile Include="CustomPropertyTab\UC_CustomPropertyTab.vb">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="EnableDesignTimeFuncForChildCtrl\EnableDesignTimeFuncForChildCtrl.Designer.vb">
      <DependentUpon>EnableDesignTimeFuncForChildCtrl.vb</DependentUpon>
    </Compile>
    <Compile Include="EnableDesignTimeFuncForChildCtrl\EnableDesignTimeFuncForChildCtrl.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="EnableDesignTimeFuncForChildCtrl\UC_EnableDesignTimeFuncForChildCtrl.Designer.vb">
      <DependentUpon>UC_EnableDesignTimeFuncForChildCtrl.vb</DependentUpon>
    </Compile>
    <Compile Include="EnableDesignTimeFuncForChildCtrl\UC_EnableDesignTimeFuncForChildCtrl.vb">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="MouseEvents\UC_DetectMouseEvent.Designer.vb">
      <DependentUpon>UC_DetectMouseEvent.vb</DependentUpon>
    </Compile>
    <Compile Include="MouseEvents\UC_DetectMouseEvent.vb">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="My Project\AssemblyInfo.vb" />
    <Compile Include="My Project\Application.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Application.myapp</DependentUpon>
    </Compile>
    <Compile Include="My Project\Resources.Designer.vb">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="My Project\Settings.Designer.vb">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="PropertyDisplayOrder\UC_PropertyDisplayOrder.Designer.vb">
      <DependentUpon>UC_PropertyDisplayOrder.vb</DependentUpon>
    </Compile>
    <Compile Include="PropertyDisplayOrder\UC_PropertyDisplayOrder.vb">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="SmartTags\SmartTagSupport.Designer.vb">
      <DependentUpon>SmartTagSupport.vb</DependentUpon>
    </Compile>
    <Compile Include="SmartTags\SmartTagSupport.vb">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="SmartTags\UC_SmartTagSupport.Designer.vb">
      <DependentUpon>UC_SmartTagSupport.vb</DependentUpon>
    </Compile>
    <Compile Include="SmartTags\UC_SmartTagSupport.vb">
      <SubType>UserControl</SubType>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="My Project\Resources.resx">
      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
      <SubType>Designer</SubType>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <None Include="My Project\app.manifest" />
    <None Include="My Project\Application.myapp">
      <Generator>MyApplicationCodeGenerator</Generator>
      <LastGenOutput>Application.Designer.vb</LastGenOutput>
    </None>
    <None Include="My Project\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <CustomToolNamespace>My</CustomToolNamespace>
      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
    </None>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="CustomEditors\EditorForm.resx">
      <DependentUpon>EditorForm.vb</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="CustomPropertyTab\CustomTab.bmp" />
    <EmbeddedResource Include="EnableDesignTimeFuncForChildCtrl\EnableDesignTimeFuncForChildCtrl.resx">
      <DependentUpon>EnableDesignTimeFuncForChildCtrl.vb</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="EnableDesignTimeFuncForChildCtrl\UC_EnableDesignTimeFuncForChildCtrl.resx">
      <DependentUpon>UC_EnableDesignTimeFuncForChildCtrl.vb</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="SmartTags\SmartTagSupport.resx">
      <DependentUpon>SmartTagSupport.vb</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="SmartTags\UC_SmartTagSupport.resx">
      <DependentUpon>UC_SmartTagSupport.vb</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <Content Include="Adornment\ReadMe.txt" />
    <Content Include="CustomEditors\ReadMe.txt" />
    <Content Include="CustomPropertyTab\ReadMe.txt" />
    <Content Include="EnableDesignTimeFuncForChildCtrl\ReadMe.txt" />
    <Content Include="MouseEvents\ReadMe.txt" />
    <Content Include="PropertyDisplayOrder\ReadMe.txt" />
    <Content Include="SmartTags\ReadMe.txt" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.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>