SIGN UP MEMBER LOGIN:    
ARTICLE

Enhanced XP Button Control

Posted by Jibin Pan Articles | GDI+ & Graphics December 12, 2003
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 inherit most of the properties from the Forms.Button.
Reader Level:

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 inherit most of the properties from the Forms.Button.

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

Download Joaqs's Windows XP-like Controls

Usages

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 look

BtnShape: Rectangle and Ellipse (if you set the size of the button as a square you got a circle button)

Image: load the image for the button.

ImageAlign: to set the layout of the image. (only support MiddleLeft, MiddleRight, TopCenter and Center)

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

Login to add your contents and source code to this article
share this article :
post comment
 
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor