Create a Dynamic, Custom Toolbar

Forms and Controls

Version Compatibility: Visual Basic 6

More information:
Shows an easy, resource efficient way to contruct a dynamic graphical tool bar which outlines a button when moved over and processes code when clicked on. Uses a control array of 16 images for the buttons and two sets of four shape lines to outline the images. One set for the mouse over indicator and another for the selected indicator. The shapes dynamically adjust to fit any size image.

Buttons can be easily added or deleted from the control array as many as you want (you need minimum of 1). Add the pictures to the image controls one at a time manually or programatically. Image controls can be repositioned in any configuration. A frame control (not required) is used is this sample to group the image controls. Multiple toolbars can be created by grouping additional image controls on different frames.

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.