XPButton: Office XP Style Button
Version Compatibility: Visual Basic 6
There are many other advanced features:
- Standard-, hover- and pressed-picture
- Caption with selectable font and color
- Horizontal and vertical alignment for text and picture (can be different)
- Selectable background-color and hover-color (standard-hover-color and office XP-hover color is the color of selected text)
- Unique states such as pressed and not enabled
- Some minor properties to let the control fit your needs
- Keyboard-accelerator support
It runs on Windows 95/98/ME/NT4/2000/XP. For use with Windows 95 there is a special compatibility-mode (because Windows 95 doesn't support mouse leave events).
All methods, properties & events are described inline. There is a dependency on vbAccelarator's subclass library, which must be registered using regsvr32.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.