How to unbind/remove ImageList? |
Post Reply |
Author | |
khmer_lovers
Newbie Joined: 18 August 2004 Location: New Zealand Status: Offline Points: 6 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
khmer_lovers
Newbie Joined: 18 August 2004 Location: New Zealand Status: Offline Points: 6 |
Post Options
Thanks(0)
|
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
The solution provided by Oleg works fine. Make sure ImageManager2
is empty. The next relase will have a method to remove all the
icons.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Also you can use UseSharedImageList property: CommandBars.Options.UseSharedImageList = True |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |