Print Page | Close Window

How to unbind/remove ImageList?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1074
Printed Date: 21 May 2024 at 9:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to unbind/remove ImageList?
Posted By: khmer_lovers
Subject: How to unbind/remove ImageList?
Date Posted: 18 August 2004 at 11:29pm
Hi,

In my Visual Basic application i have the below code which bind the commandbars to an image list control. It works fine but my question how do I unbind/remove the imagelist away from the commandbars. The reason for this because I want to switch to a diffent imagelist (contains different images and sizes) for specific condition occurs.


'Code - Bind MS  imagelist to commandbars
'===========================
Call CommandBars.AddImageList(ImageList1)


Can anyone help.

PS. I am using Commandbars Activex v8.5.



Replies:
Posted By: Oleg
Date Posted: 19 August 2004 at 1:23am

In version >= 8.6 you can use ImageManager icons

CommandBars.Icons = ImageManager1.Icons

then

CommandBars.Icons = ImageManager2.Icons

Upgrade your AvtiveX.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: khmer_lovers
Date Posted: 19 August 2004 at 3:35pm

Hi,

It is possible to set commandbars.icons = nothing  or commandbars.AddImageList = nothing because at some stage i don't want the end user see the icons.

Thanks in advance



Posted By: SuperMario
Date Posted: 19 August 2004 at 3:42pm
The solution provided by Oleg works fine.  Make sure ImageManager2 is empty.  The next relase will have a method to remove all the icons.


Posted By: Oleg
Date Posted: 19 August 2004 at 11:37pm

Also you can use UseSharedImageList property:

CommandBars.Options.UseSharedImageList = True



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net