Avatar of LeighWardle
LeighWardle
Flag for Australia asked on

Replacing toolbar icons during runtime using a different ImageList

Hi Experts,

I want to have 2 versions of a toolbar - the only difference between the 2 versions is the images - let's call them the "old" and the "new".

The images are in ImageListOld and ImageListNew.

At design time the Toolbar is bound to ImageListNew.

At runtime I want to optionally replace the Toolbar images by those from ImageListOld.

I tried this code, but all the toolbar images turned blank:

tlbToolbar.ImageList = ImageListOld

Is it possible to copy the images from ImageListOld to ImageListNew?

Regards,
Leigh
Visual Basic Classic

Avatar of undefined
Last Comment
Martin Liss

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Martin Liss

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
LeighWardle

ASKER
Thanks, Martin.

Regards,
Leigh
Martin Liss

You're welcome and I'm glad I was able to help.

My profile contains links to some articles I've written that may interest you.
Marty - MVP 2009 to 2012
Your help has saved me hundreds of hours of internet surfing.
fblack61