65.9K
CodeProject is changing. Read more.
Home

Real XP Style Buttons in VB.NET

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.62/5 (17 votes)

Apr 29, 2004

viewsIcon

103360

downloadIcon

1276

An article on Real XP Style Buttons

Introduction

This article is about making a User Control behave and look like a Windows XP Style Button.

Background

Someone posted on the Code Project a Windows XP button. I found that this looked a lot like a VB.Net button whose properties is set to view as a flat button. I expected it to be like the buttons used by the XP calculator. Well I think my result is nearly perfect. See for yourself.

Using the code

If you use VS 2003 you should open all the user controls in designer view. Then it will show on the Toolbox under the My User Controls Tab. If you use VS 2002, it will display on the Tab where all the Windows Controls are displayed.

Points of Interest

Ok, so if anyone who has a better version, or something better than this XP Style button, I would appreciate it if you could share some code.

History

This is the first version and I will change it as it gets better.