Click here to Skip to main content
11,707,254 members (63,743 online)
Click here to Skip to main content

Enhanced XP Button

, 9 Dec 2003 163.9K 1.8K 77
Rate this:
Please Sign up or sign in to vote.
Enhanced XP Button

Introduction

The enhanced XP style button is very easy to use and it supports Rectangle, Circle or Ellipse shape with image and different colors. This control also inherits most of the properties from Forms.Button.

This control is created based on Joaqs’s XP button in his Windows XP-like Controls. I add the properties BtnStyle, BtnShape and made the properties Image and ImageAlign work for this control. The reason that I selected Joaqs’s XP button to work is that the button inherited from Forms.Button and it has the basic XP button functions. So I got the authorization from the Joaqs to add some more features and post it for the people who like it.

Link

Usage

  1. Add the control to the Toolbox.
  2. Drop the control to the WinForm.
  3. Select the properties:
    • BtnStyle : Default, Blue, Olivegreen, Silver for different looks
    • BtnShape: Rectangle and Ellipse (if you set the size of the button as a square you get a circle button)
    • Image: load the image for the button.
    • ImageAlign: to set the layout of the image. (only supports MiddleLeft, MiddleRight, TopCenter and Center)

You can still adjust the image location by changing the property value of the of AdjustImageLocation to move the image around until you are satisfied.

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

Share

About the Author

Member 572469
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
QuestionCan't dowmload Pin
面朝大海23-Apr-14 4:16
professional面朝大海23-Apr-14 4:16 
GeneralImage problem Pin
hkrnic9-Jul-06 1:00
memberhkrnic9-Jul-06 1:00 
QuestionQuick Question? Pin
VectorX20-Nov-05 14:31
memberVectorX20-Nov-05 14:31 
GeneralCan't download source code Pin
gp_mk3-Jan-05 22:10
membergp_mk3-Jan-05 22:10 
QuestionHow to use it? Pin
Weiye Chen19-Feb-04 17:07
memberWeiye Chen19-Feb-04 17:07 
AnswerRe: How to use it? Pin
Weiye Chen19-Feb-04 20:59
memberWeiye Chen19-Feb-04 20:59 
GeneralResource Issue Pin
draellix19-Jan-04 5:39
memberdraellix19-Jan-04 5:39 
GeneralBuild Errors Pin
mikeperetz17-Dec-03 12:30
membermikeperetz17-Dec-03 12:30 
Generalbuild Errors Pin
csadler15-Dec-03 3:48
membercsadler15-Dec-03 3:48 
GeneralRe: build Errors Pin
fuzzylintman15-Dec-03 4:26
memberfuzzylintman15-Dec-03 4:26 
GeneralRe: build Errors Pin
csadler15-Dec-03 12:51
membercsadler15-Dec-03 12:51 
GeneralRe: build Errors Pin
xiao hong27-Feb-04 1:58
memberxiao hong27-Feb-04 1:58 
GeneralRe: build Errors Pin
Oscarjofre6-Sep-05 5:15
memberOscarjofre6-Sep-05 5:15 
GeneralRe: build Errors Pin
sfdkuhudkj10-Mar-06 6:29
membersfdkuhudkj10-Mar-06 6:29 
GeneralVery important question! Pin
A. Riazi9-Dec-03 22:40
memberA. Riazi9-Dec-03 22:40 
GeneralRe: Very important question! Pin
Daniel Turini9-Dec-03 23:06
memberDaniel Turini9-Dec-03 23:06 
GeneralRe: Very important question! Pin
Balkrishna Talele10-Dec-03 22:43
memberBalkrishna Talele10-Dec-03 22:43 
GeneralRe: Very important question! Pin
rfmobile11-Dec-03 23:16
memberrfmobile11-Dec-03 23:16 
GeneralRe: Very important question! Pin
Daniël Pelsmaeker13-Dec-03 8:24
memberDaniël Pelsmaeker13-Dec-03 8:24 
GeneralRe: Very important question! Pin
__MadHatter__10-Feb-04 11:38
member__MadHatter__10-Feb-04 11:38 

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.150819.1 | Last Updated 10 Dec 2003
Article Copyright 2003 by Member 572469
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid