Can't assign an image list
Can't assign an image list
Can't assign an image list
Can't assign an image list
Can't assign an image list
Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list
Can't assign an image list Can't assign an image list
Can't assign an image list
Go Back  Xtreme Visual Basic Talk > > > Can't assign an image list


Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2005, 05:04 AM
CornMaster's Avatar
CornMaster CornMaster is offline
Contributor
 
Join Date: Aug 2000
Location: St. John's, Newfoundland
Posts: 655
Default Can't assign an image list


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?
__________________
~Complex Solutions to Simple Problems~
http://www.cornempire.com
Reply With Quote
  #2  
Old 06-09-2005, 05:38 AM
spikey_richie's Avatar
spikey_richie spikey_richie is offline
Junior Contributor
 
Join Date: Jul 2004
Location: Colton, California
Posts: 370
Default

It sounds like you've added an image to the imagelist that the toolbar doesn't like (too big/incorrect format).
__________________
All work & no play, makes Rich a dull boy!
Join the millions converting to Firefox... www.getfirefox.com You know it makes sense!
Search the forum before posting
Reply With Quote
  #3  
Old 06-09-2005, 10:02 AM
CornMaster's Avatar
CornMaster CornMaster is offline
Contributor
 
Join Date: Aug 2000
Location: St. John's, Newfoundland
Posts: 655
Default

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.
__________________
~Complex Solutions to Simple Problems~
http://www.cornempire.com
Reply With Quote
  #4  
Old 06-09-2005, 10:03 AM
surixurient's Avatar
surixurient surixurient is offline
Junior Contributor
 
Join Date: Apr 2005
Location: between C0000h and C7FFFh
Posts: 351
Default

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.
Reply With Quote
  #5  
Old 06-09-2005, 10:05 AM
CornMaster's Avatar
CornMaster CornMaster is offline
Contributor
 
Join Date: Aug 2000
Location: St. John's, Newfoundland
Posts: 655
Default

Ok...how did you do it through code?

I thought I was doing it...but it says my image list wasn't initialized.
__________________
~Complex Solutions to Simple Problems~
http://www.cornempire.com
Reply With Quote
  #6  
Old 06-09-2005, 10:10 AM
surixurient's Avatar
surixurient surixurient is offline
Junior Contributor
 
Join Date: Apr 2005
Location: between C0000h and C7FFFh
Posts: 351
Default

well i created the image list at design time. then on form load i
Code:
set MyTreeView.imagelist = MyImageList
Reply With Quote
  #7  
Old 06-09-2005, 10:21 AM
CornMaster's Avatar
CornMaster CornMaster is offline
Contributor
 
Join Date: Aug 2000
Location: St. John's, Newfoundland
Posts: 655
Default

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.
__________________
~Complex Solutions to Simple Problems~
http://www.cornempire.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Can't assign an image list
Can't assign an image list
Can't assign an image list Can't assign an image list
Can't assign an image list
Can't assign an image list
Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list Can't assign an image list
Can't assign an image list
Can't assign an image list
 
Can't assign an image list
Can't assign an image list
 
-->