Click here to Skip to main content
13,289,626 members (52,455 online)
Click here to Skip to main content
Add your own
alternative version


49 bookmarked
Posted 4 Dec 2003

Elongated Buttons, Rounded cornered Groupboxes and Labels of Trapeziums Shaped

, 20 May 2004
Rate this:
Please Sign up or sign in to vote.
This article shows how to create elongated buttons, rounded cornered groupboxes and labels of trapezium shape

Sample screenshot


This is a article as to how to create buttons, groupboxes and labels of different shapes using different GDI+ Functions. This example uses GraphicsPath() functions and others. To Create  Elongated buttons, Rounded cornered groupbox and Trapezium labels we are using the a GrahicsPath() object and added a semicircle to the left and right and a rectangle in between for the elongated shape. To Create a trapezium shape for the labels I have used the client rectangle and created a polygon with points to the three corners of the clientrectangle and the top right corner i have reduced the width by 20 pixels. for the drop shadow labels i have got shadow colors by using alpha index of black colors and written the text as many times as the shadow length is specified increasing the left and top position by 1 pixels for each iteration. Also used control's Region Property to specify non regular shaped i.e. non rectangular shape of the control.


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

Web Developer
India India
My mail ID is

You may also be interested in...

Comments and Discussions

QuestionButton text align Pin
drummers17-Sep-14 10:50
memberdrummers17-Sep-14 10:50 
Questionthank you button super Pin
Hakan Arslantas27-Mar-13 12:01
memberHakan Arslantas27-Mar-13 12:01 
Generalthank you Pin
zoryz16-Nov-09 5:58
memberzoryz16-Nov-09 5:58 
Generalis it fine is I use ur code Pin
hamletj27-Mar-07 3:35
memberhamletj27-Mar-07 3:35 
GeneralIn c# Pin
fhunth12-Aug-04 6:16
memberfhunth12-Aug-04 6:16 
GeneralRe: In c# Pin
Shouvik18-Aug-04 21:00
memberShouvik18-Aug-04 21:00 
GeneralRe: In c# Pin
spvarapu5-May-05 4:23
memberspvarapu5-May-05 4:23 
Generalconvert to server sidec ode Pin
webber12345631-Jul-04 14:24
memberwebber12345631-Jul-04 14:24 
Questionplop ? Pin
Epoque5119-Jul-04 5:58
memberEpoque5119-Jul-04 5:58 
AnswerRe: plop ? Pin
Shouvik18-Aug-04 20:55
memberShouvik18-Aug-04 20:55 
GeneralThings to add Pin
mav.northwind5-Dec-03 21:48
membermav.northwind5-Dec-03 21:48 
GeneralRe: Things to add Pin
Shehzad Salim6-Dec-03 1:46
memberShehzad Salim6-Dec-03 1:46 

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 21 May 2004
Article Copyright 2003 by Shouvik
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid