Enhanced CommandButton with Many Extra Features

Forms and Controls

Version Compatibility:

More information:
An ActiveX control (OCX) for creating Buttons with attributes unavailable in the intrinsic CommandButton control of VB. Among other capabilities, this UserControl allows (1) label or picture alone, or both, on the button; (2) colored caption; (3) colored background; (4) choice of positioning picture at top or left of caption, and the distance between them; (5) choices for button appearance (flat, half-raised and raised); (6) an option for varying caption colors and pictures at different states relative to the button (down, up and over); (7) an option for a sunken effect, with an optional different caption and/or backcolor.

The control is very simple and flexible to use. It is also generously commented for the benefit of those relatively new to ActiveX Programming.

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.

Download ocxbutton.zip