Setting ImageIndex of a ToolStipMenuItem

  • Thread starter VBTricks.de.vu Webmaster
  • Start date
V

VBTricks.de.vu Webmaster

Hello,

I'm trying to associate icons to ToolStripMenuItems at runtime via


MenuStrip1.ImageList = MyImageList
mnuFileOpen.ImageIndex = 0


But unfortunately no image is displayed. The imagelist is filled with icons.


Thanks in advance,

Stefan
--
___________________________________www.VBTricks.de.vu
the free resource for Visual Basic, Gambas and Pascal
components, tips & complete projects

www: http://www.VBTricks.de.vu
mail: vbtricks <at> gmx <dot> net
_____________________________________________________
 
V

VBTricks.de.vu Webmaster

Well,

as I still found no solution, I use a workaround by using the Image
property:
mnuFileOpen.Image = MyImageList.Images(0)

A bug in .NET?

Stefan

--
___________________________________www.VBTricks.de.vu
the free resource for Visual Basic, Gambas and Pascal
components, tips & complete projects

www: http://www.VBTricks.de.vu
mail: vbtricks <at> gmx <dot> net
_____________________________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top