Click here to Skip to main content
15,894,740 members
Articles / Desktop Programming / Windows Forms

Owner Drawn Resizable Control

Rate me:
Please Sign up or sign in to vote.
4.70/5 (16 votes)
30 Jan 2007CPOL14 min read 106.2K   2.7K   40  
Creating a custom control that you can resize at runtime from all four corners.
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("CtlResize")> 
<Assembly: AssemblyDescription("")> 
<Assembly: AssemblyCompany("Eicon Networks")> 
<Assembly: AssemblyProduct("CtlResize")> 
<Assembly: AssemblyCopyright("Copyright © Eicon Networks 2007")> 
<Assembly: AssemblyTrademark("")> 

<Assembly: ComVisible(False)>

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("3ee5a1e2-d620-4f02-9428-5b76dd931c12")> 

' 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.*")> 
<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
Software Developer (Senior)
United States United States
Ray spends his time between running a private software company (www.enterprocity.com) and working during the day as a Software Architect for Independent Health (www.independenthealth.com).

His second love, falling only below his wife and child, is programming. His language of choice is VB.NET but he can work in C# and C/C++ enough to get by. Unfortunately his current day job @ IH has him buried deep in solutions using Java (UGH).

He has also recently started a teaching career at a local community college.

Comments and Discussions