Click here to Skip to main content
Click here to Skip to main content

Advanced Shape Control

, 4 Sep 2002
Rate this:
Please Sign up or sign in to vote.
Advanced Shape Control


For some reason microsoft decided that we don't need the shape control that comes with Visual Studio 6.0, and removed it from VS.NET and left us to buy a third party control or develop one by our own.

Well, with the extensive namespaces that dot net supports for GDI+ and Windows Controls, it's easy to develop and extend the old shape control. The main purpose of this control is, its a lightweight control and  improves the user interface very much by grouping controls with out using a Group box or other controls.

This article is also a good resource for GDI+, and propertygrid control. I am developing this control as a Windows Extended controls library, to which i will be adding more controls in future. So, any suggetions for custom controls are welcome.

This article assumes that you have good understanding of GDI+, PropertyGrid and Windows Controls.

Refer to my other article on propertygrid Using PropertyGrid

NameSpaces Used 


Topics Covered 

  • GDI +
  • Windows Controls
  • PropertyGrid


The attached project has a demo showing how to use the control. Well, using the control is fairly simple yet very extensive. It supports 4 shapes with Solid colors, Gradiant fill, Textures, Hatch fills, shadows, 3D Borders,text and 3D border styles. Using these combinations you can create a variety of effects. The main purpose of this control is to improve the visual appearance of the forms, so use of 1 or 2 instances will be enough to achive the result.


Properties are divided into sub categories as 















Each of these properties can be expanded from propertygrid and customized based on the requirement also these properties can be turned on or off by a Drawxxxx property.   

ToDo Features

  • Implement support for other shapes
  • Implement a C# version
  • Implement 3D Borders for all shapes


  • Please post any remarks,bugs to this article's thread
  • Suggestions are welcome for windows controls as part of my Windows Extended Controls Library


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


About the Author

Sreenivas Vemulapalli
Web Developer
United States United States
Working as consultant in Client/server,Web Development, Automation areas using C#,Vb,,,Sql Server,Xml,Html&Dhtml etc..
Looking for a challenging project in .NET

Comments and Discussions

GeneralMy vote of 5 Pinmembermanoj kumar choubey18-Feb-12 4:12 
GeneralBadge Designer Yogesh18-Aug-09 8:03 
GeneralShare- RoundedRectangle not working Pinmembersbkrishnan2511-Nov-08 23:38 
Generalparameter is not valid.Error Pinmemberkhandelwalpankajcdac13-Jan-08 6:28 
GeneralBorderStyle Bug PinmemberMQUINNUSA18-Jun-07 12:09 
GeneralThanx ....Great control Pinmemberammsamm21-Apr-07 14:05 
QuestionRead ShapeEx using xmlReader ?? PinmemberPrajakta Patil16-Jan-07 18:46 
AnswerRe: Read ShapeEx using xmlReader ?? Yogesh15-May-09 7:40 
QuestionThanks! But we need your help... PinmemberPrajakta Patil17-Dec-06 19:24 
GeneralDisplaying ShapeEx in my toolbox Pinmemberechelon38097-Dec-06 3:16 
GeneralRe: Displaying ShapeEx in my toolbox PinmemberEdmondo Gigli5-Jan-10 2:00 
GeneralGenerating Shapes at Runtime PinmemberChandan_Kr30-Aug-06 1:55 
GeneralVB.NET 2003 Pinmemberfissidens5-Nov-05 0:26 
GeneralTransparent Fill Pinmembermuralikannur6-Mar-05 22:52 
GeneralRe: Transparent Fill PinmemberMohan Patil11-Mar-07 19:48 
GeneralRe: Transparent Fill Pinmembera_annunz20-Feb-08 6:11 
AnswerRe: Transparent Fill Pinmemberdcallaghan11-Dec-08 6:59 
GeneralSSL Pinmembersunyz23-Dec-04 21:40 
Generalneed line control Pinmembernjpost4123-Feb-04 11:34 
GeneralExcellent Control. Fill Color bug... PinsussAnonymous21-Nov-03 18:53 
GeneralExpandableObjectConverter busted Pinmemberelitecommerceserver17-Sep-03 19:14 
GeneralRe: ExpandableObjectConverter busted PinsussAnonymous19-Jun-04 3:28 
GeneralGood work PineditorNishant S11-Sep-03 4:21 
GeneralThx...I was looking for this type of control PinmemberWGenc4-Aug-03 11:23 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150414.1 | Last Updated 5 Sep 2002
Article Copyright 2002 by Sreenivas Vemulapalli
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid