Strip Status Label does not display image in Image Margin (Context Menu Strip)

0

I'm trying to insert an image into a StripStatusLabel, but for some reason it is not displayed in the left corner, just like a StripMenuItem.

Inserts are being made in the same way:

Dim teste As New ToolStripStatusLabel("Teste")
Dim sair As New ToolStripMenuItem("Sair")

teste.Image = My.Resources.Teste
sair.Image = My.Resources.Sair

cmsMagic.Items.Insert(0, teste)
cmsMagic.Items.Insert(1, sair)

How it works:

    
asked by anonymous 06.02.2017 / 17:33

1 answer

0

The question is just the different kind of object. Only ToolStripMenuItem objects have access to the differentiated menu bar to put their images. If you want this behavior, you should use this type to display the "Test" String instead of% w /     

12.02.2017 / 18:53