Click here to Skip to main content
Licence 
First Posted 9 Dec 2003
Views 153,259
Bookmarked 73 times

Enhanced XP Button

By | 9 Dec 2003 | Article
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

About the Author

Member 572469



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralImage problem Pinmemberhkrnic1:00 9 Jul '06  
QuestionQuick Question? PinmemberVectorX14:31 20 Nov '05  
GeneralCan't download source code Pinmembergp_mk22:10 3 Jan '05  
QuestionHow to use it? PinmemberWeiye Chen17:07 19 Feb '04  
AnswerRe: How to use it? PinmemberWeiye Chen20:59 19 Feb '04  
GeneralResource Issue Pinmemberdraellix5:39 19 Jan '04  
GeneralBuild Errors Pinmembermikeperetz12:30 17 Dec '03  
Generalbuild Errors Pinmembercsadler3:48 15 Dec '03  
GeneralRe: build Errors Pinmemberfuzzylintman4:26 15 Dec '03  
GeneralRe: build Errors Pinmembercsadler12:51 15 Dec '03  
GeneralRe: build Errors Pinmemberxiao hong1:58 27 Feb '04  
GeneralRe: build Errors PinmemberOscarjofre5:15 6 Sep '05  
GeneralRe: build Errors Pinmembersfdkuhudkj6:29 10 Mar '06  
GeneralVery important question! PinmemberA. Riazi22:40 9 Dec '03  
GeneralRe: Very important question! PinmemberDaniel Turini23:06 9 Dec '03  
GeneralRe: Very important question! PinmemberBalkrishna Talele22:43 10 Dec '03  
GeneralRe: Very important question! Pinmemberrfmobile23:16 11 Dec '03  
GeneralRe: Very important question! PinmemberDaniël Pelsmaeker8:24 13 Dec '03  
GeneralRe: Very important question! Pinmember__MadHatter__11:38 10 Feb '04  

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.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 10 Dec 2003
Article Copyright 2003 by Member 572469
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid