Click here to Skip to main content
15,885,216 members
Articles / Desktop Programming / Windows Forms
Article

.NET Shape Control

Rate me:
Please Sign up or sign in to vote.
1.91/5 (9 votes)
3 Aug 2005 64.6K   2.6K   24   17
Drawing shapes in GDI+.

Sample Image

Introduction

The Shape control was designed to re-create the control that was lost when upgrading to the .NET Framework. This Shape control has much better control over the look.

Using the code

Pretty easy, just plop it on your screen and start playing with the properties.

Points of Interest

I originally wrote this control to get acquainted with drawing in the .NET Framework and the C# language. I had a lot of fun doing it, and learned a lot about the basics of GDI+. I think that it would make a really good tutorial for someone trying to learn the basic flow of a custom graphical control. I would appreciate if anyone adds some functionality, that you would email me so that I can add it in to my source. Enjoy!!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
I am currently a software developer for Dearman Systems, Inc..

Comments and Discussions

 
QuestionBusiness use Pin
solitonwave22-Oct-08 18:15
solitonwave22-Oct-08 18:15 
QuestionNot really an article, is it? Pin
T1TAN17-Jul-07 4:36
T1TAN17-Jul-07 4:36 
Generalresize and relocate by mouse Pin
Jian123456710-Jan-06 4:38
Jian123456710-Jan-06 4:38 
GeneralRe: resize and relocate by mouse Pin
Sautin.net10-Jan-06 5:43
Sautin.net10-Jan-06 5:43 
GeneralRe: resize and relocate by mouse Pin
Jian123456710-Jan-06 6:54
Jian123456710-Jan-06 6:54 
GeneralRe: resize and relocate by mouse Pin
Sautin.net10-Jan-06 8:23
Sautin.net10-Jan-06 8:23 
GeneralRe: resize and relocate by mouse Pin
jatm14-Jun-06 18:33
jatm14-Jun-06 18:33 
GeneralRe: resize and relocate by mouse Pin
ipsharer17-Jun-08 7:44
ipsharer17-Jun-08 7:44 
GeneralRe: resize and relocate by mouse Pin
Madmanxxx30-Mar-09 23:38
Madmanxxx30-Mar-09 23:38 
GeneralConnector Pin
Jian12345679-Jan-06 4:51
Jian12345679-Jan-06 4:51 
GeneralRe: Connector Pin
Sautin.net9-Jan-06 12:26
Sautin.net9-Jan-06 12:26 
GeneralRe: Connector Pin
Jian123456710-Jan-06 3:05
Jian123456710-Jan-06 3:05 
GeneralRe: Connector Pin
Sautin.net10-Jan-06 5:47
Sautin.net10-Jan-06 5:47 
GeneralRe: Connector Pin
Sautin.net10-Jan-06 5:48
Sautin.net10-Jan-06 5:48 
GeneralRe: Connector Pin
Jian123456710-Jan-06 6:59
Jian123456710-Jan-06 6:59 
GeneralRe: Connector Pin
Ariston Darmayuda5-Jul-07 7:29
Ariston Darmayuda5-Jul-07 7:29 
Well connector I think same like drawing line.

But I have question how to select two shape so it can be drag and drop at same time????

This make me confuse....Confused | :confused:

Thanks...
GeneralRe: Connector Pin
Sautin.net5-Jul-07 7:41
Sautin.net5-Jul-07 7:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.