Click here to Skip to main content
15,883,749 members
Articles / Programming Languages / Visual Basic

Create your Own Runtime Movable Windows Forms Controls

Rate me:
Please Sign up or sign in to vote.
4.47/5 (55 votes)
18 Mar 2010CPOL14 min read 383.3K   5.5K   137  
A walkthrough on building a Windows Forms label control that can be moved by the user at runtime.
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following 
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("MovableLabel")> 
<Assembly: AssemblyDescription("A runtime movable label control")> 
<Assembly: AssemblyCompany("DSKResearch")> 
<Assembly: AssemblyProduct("MovableLabel")> 
<Assembly: AssemblyCopyright("Copyright � DSKResearch 2006")> 
<Assembly: AssemblyTrademark("")> 

<Assembly: CLSCompliant(True)> 

<Assembly: ComVisible(True)> 

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("48dfe31b-4483-459f-b3db-1ffc3ddeefbb")> 

' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version 
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision Numbers 
' by using the '*' as shown below:

<Assembly: AssemblyVersion("1.0.0.0")> 
<Assembly: AssemblyFileVersion("1.0.0.0")> 

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
Systems Engineer Blue Cross Blue Shield of Michigan
United States United States
I started out as a child. First, mastering drooling and sucking on a bottle. I soon discovered that these skills came to be very important later in life, and I put them to good use. Not "over the top" mind you, as I never drove home drunk. But, that damn bib catching my drool was getting in the way and turning the ladies away, so I had to abandon my strength and develop other skills.

So, I entered the world of geekdom. BASIC at first, then TMS9900 and Intel Assemblers, COBOL, C, C++, ...

... to be continued ...

Comments and Discussions