Solved

VB error ImageList cannot be modified while another control is bound to it

Posted on 2004-08-10
1
1,634 Views
Last Modified: 2011-09-20
i get this errror

Run-Time  error '35617':

ImageList cannot be modified while another control is bound to it


[code]
    ImageList1.ListImages.Clear
[/code]

I have my tabcontrol bound to it

How can i un bind it so i can clear all the images?
0
Comment
Question by:Vartana
1 Comment
 
LVL 18

Accepted Solution

by:
JR2003 earned 500 total points
ID: 11766366
Before you clear the imageList set the ImageList property of the TabStrip control to Nothing:

    Set TabStrip1.ImageList = Nothing
    ImageList1.ListImages.Clear

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now