Toolbar Q

Hi,

At design time, set
ToolBar1.ImageList=ImageList1
ToolBar1.HotImageList=ImageList2
and set each button Image property to a index of the ListImage in ImageList1 and ImageList2.

At run time, when the mouse is pisitioned above a button, the picture of the button just not changes to the picture in ImageList2.

Anything I did wrong?
victorlongAsked:
Who is Participating?
 
wsh2Connect With a Mentor Commented:
Depending on which version of the common controls you are using.. the Toolbar.STYLE property has to be set to an integer 1. In version 5, this equates to tbrTransparent.. In version 6, tbrFlat.

Hope this helps.. <smile>.

B.
0
 
victorlongAuthor Commented:
Hi wsh2,

Yes you are absolutely right! Thank you.
0
All Courses

From novice to tech pro — start learning today.