Click here to Skip to main content
15,886,026 members
Articles / Programming Languages / C#

A simple example of adding movable label controls at runtime

Rate me:
Please Sign up or sign in to vote.
4.44/5 (4 votes)
23 Jan 2013CPOL 32.5K   1.4K   15  
I created a simple form with a button to add a label control at run time sequentially numbered; labels are movable and lines are drawn between labels.

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MovableLabels", "MovableLabels.csproj", "{45157B8D-158A-4C80-9569-123599EB2578}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{45157B8D-158A-4C80-9569-123599EB2578}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{45157B8D-158A-4C80-9569-123599EB2578}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{45157B8D-158A-4C80-9569-123599EB2578}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{45157B8D-158A-4C80-9569-123599EB2578}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

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)
Egypt Egypt
I am an ERP developer using VFP9
I started as a Clipper 5.2 with DBase III+ in 1995, I worked with Access 2.0
Then I converted to VFP5.0 then VFP9, I worked on an ERP application written by FoxPro2.6

Recently, I started learning C#
I have a tendency to do generic work and build generic functions, I try to do that using C#

I'm preparing myself now to be a Framework C# programmer
First step I'll read the C# specification, when done I'll update this, I've already started this in Feb-27-2013

Comments and Discussions