Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toolbar images missing ???

Status
Not open for further replies.

keithinuk

Technical User
May 14, 2002
56
GB
Hello
I have an MDI form with a toolbar on it. I've added an imagelist control to the form and added icons. I've assigned the icons to the buttons. In the IDE everything looks ok. When I run the application the images do not appear. I've tried setting the colourdepth to 4, 8, 16, 24 and 32 bit to no avail. I've also made sure that the buttons have the correct imageindex assigned.
I'm not far off bouncing my laptop off the wall at the moment so any help would be gratefully appreciated.
Thanks in advance
Keith
 
One more thing, I've also tried changing the size of the toolbar buttons but it didn't work.
The text appears at run time too !!!!
Thanks again
Keith
 
do you get any errors or does it just not show?

did you add the images through the code or through the properties window?


Kris
 
I don't get any errors at all and they were added through the properties window.
I'm currently running with the following values
Appearance: Normal
Autosize: False
Borderstyle: FixedSingle

Buttons: All set to Modifiers: Public, Enabled: True, Style: PushButton, Visible: True

Divider: False
Enabled: True
Modifiers: Public
TextAlign: Underneath
Visible: True

I've tried all manner of variations on the above values without success.
I even resorted to deleting temp files and rebooting.

I'm going to try loading images from the code this morning. I'll post an update when I've done it.

Thanks !!!!
Keith
 
Loading the images through the code without changing any of the toolbar properties (apart from removing imagelist)worked ?????????

Don't you just love VB :)

Thanks for your help Kris
 
How to place an icon in toolbar button? in VB there is a tools for doing this but in VB.Net how to do this?

[ponder]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top