06-09-2005, 06: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?
06-09-2005, 06:38 AM
It sounds like you've added an image to the imagelist that the toolbar doesn't like (too big/incorrect format).
06-09-2005, 11: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.
06-09-2005, 11: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.
06-09-2005, 11: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.
06-09-2005, 11:10 AM
well i created the image list at design time. then on form load i
set MyTreeView.imagelist = MyImageList
06-09-2005, 11: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.