Solved

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

Posted on 2004-08-10
1
1,682 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
passing parameter in sql procedure 9 65
MsgBox 4 68
how to Classify of email (pdf attachments) 7 45
VBA: Insert New column with specific format type 12 38
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

828 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