Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1792
  • Last Modified:

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

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
Vartana
Asked:
Vartana
1 Solution
 
JR2003Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now