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?
LVL 1
VartanaAsked:
Who is Participating?
 
JR2003Connect With a Mentor Commented:
Before you clear the imageList set the ImageList property of the TabStrip control to Nothing:

    Set TabStrip1.ImageList = Nothing
    ImageList1.ListImages.Clear

0
All Courses

From novice to tech pro — start learning today.