Can't assign an image list

CornMaster
06-09-2005, 05:04 AM
I have a toolbar and an imagelist.

I turned off the binding of the controls to change the pictures and add 2.

Now I can't select the imarelist in the toolbar controls properties.

Well...I can select it....but when I press ok or Apply it just goes back to none.

Anyone got any ideas?

spikey_richie
06-09-2005, 05:38 AM
It sounds like you've added an image to the imagelist that the toolbar doesn't like (too big/incorrect format).

CornMaster
06-09-2005, 10:02 AM
Do you know the proper format for the images?

I also had the trouble with a treeview....but I was able to replace 3 of the 4 images without unbinding the controls. (it was a different imagelist.)

EDIT: Actually....I just tried a test. I created a new .exe with an empty toolbar and an empty imagelist...and whenever I assigned the imagelist to the toolbar...it would revert to none.

surixurient
06-09-2005, 10:03 AM
I also had the trouble of setting an image list to a treeview at designtime(reverted back to none when i hit apply). But if i set the image list at runtime, it works.

CornMaster
06-09-2005, 10:05 AM
Ok...how did you do it through code?

I thought I was doing it...but it says my image list wasn't initialized.

surixurient
06-09-2005, 10:10 AM
well i created the image list at design time. then on form load i

set MyTreeView.imagelist = MyImageList

CornMaster
06-09-2005, 10:21 AM
I was being dumb...I was assigning the Treeview to the imagelist...not the tool bar...fixed now...thanks.

But it's a pain that my VB install keeps degrading. A few months ago I lost the ability to compile from the shell... (by rightclicking the program file)

Oh well..maybe I'll reinstall.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum