Click here to Skip to main content
15,896,912 members
Articles / Programming Languages / C#

Simple Runtime Control Sizing and Dragging Class

Rate me:
Please Sign up or sign in to vote.
4.90/5 (73 votes)
29 Sep 2003Public Domain2 min read 228.6K   5.6K   99  
Sample and brief description of simple class that enables sizing and dragging of controls on a form
<?xml version="1.0"?>
<VisualStudioProject>
	<CSHARP ProjectType="Local" ProductVersion="7.10.3052" SchemaVersion="2.0" ProjectGuid="{DDC9D62C-F9E4-4599-ACE1-D502B9D933A4}">
		<Build>
			<Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" PreBuildEvent="" PostBuildEvent="" RunPostBuildEvent="" OutputType="WinExe" RootNamespace="PickBoxTest" StartupObject="">
				<Config Name="Release" AllowUnsafeBlocks="False" BaseAddress="285212672" CheckForOverflowUnderflow="False" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DefineDebug="false" 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="" DefineDebug="false" DebugSymbols="True" FileAlignment="4096" IncrementalBuild="True" 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.Windows.Forms" AssemblyName="System.Windows.Forms" HintPath="c:\windows\microsoft.net\framework\v1.1.4322\System.Windows.Forms.dll"/>
				<Reference Name="" AssemblyName="System.Drawing" HintPath="c:\windows\microsoft.net\framework\v1.1.4322\System.Drawing.dll"/>
			</References>
		</Build>
		<Files>
			<Include>
				<File RelPath="WinForm.resx" BuildAction="EmbeddedResource" DependentUpon="WinForm.cs"/>
				<File RelPath="WinForm.cs" BuildAction="Compile" SubType="Form"/>
				<File RelPath="AssemblyInfo.cs" BuildAction="Compile"/>
				<File RelPath="PickBox.cs" BuildAction="Compile"/>
			</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, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Program Manager General Dynamics Mission Systems Canada
Canada Canada
Manager, Customer Training in Ottawa, ON, Canada
www.gdcanada.com

Comments and Discussions