Adding images to Toolbar

  • Thread starter Thread starter Dino M. Buljubasic
  • Start date Start date
D

Dino M. Buljubasic

I have a tool bar and an image list that holds all icon images that are
shown on the tool bar. However, I have noticed several times that when I
add the images to the buttons on toolbar, they get for first few times only.
Each time I open my form afterwards, the icons are gone and only blank
buttons are visible.

I did not move any folders around, so all the images are where they were and
they get referenced properly. No changes to the code has been made either.

Any help will be greatfully appreciated
Dino
 
Hi,

The image list does not read images from disk. It stores them in a resource
file instead. It probably matters how you create the toolbar and bind the
imagelist to it. Could you please post some post code snippet?
 
Hi Dmitry,

Dino mentioned elsewhere that he had 'solved' this one. He had the ToolBar
on a Panel and when he moved it onto the Form itself, the problem went away.
Solved yet not solved....

[...might as well check...]

Yes, I've found Dino's other post.

|| I fixed the problem with icons on the toolbar, after researching I
|| found out that the tool bar can only lay on the form and my was
|| inside a panel. I guess that was the problem)

Does that sound like a valid limitation of the ToolBar?

Regards,
Fergus
 
* "Fergus Cooney said:
Does that sound like a valid limitation of the ToolBar?

I am not able to reproduce the problem on a .NET 1.0 machine running
Windows XP Professional.
 
No, it does not sounds like that at all but that is what I found at msdn.
Strange but works for me now :)
 
* "Dino M. Buljubasic said:
No, it does not sounds like that at all but that is what I found at msdn.
Strange but works for me now :)

Where in MSDN did you find that?
 
You welcome Herfried. Tx for your help :)

--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
 
Back
Top