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

Asked

Viewed 23 times

0

I’m trying to insert an image in a Stripslabel, but for some reason it is not displayed in the left corner, like a Stripmenuitem.

Inserts are being made 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 does it look:

Como fica:

1 answer

0

The question is just the different type of object. Only objects ToolStripMenuItem have access to the differentiated menu Arja to place your images. If you want this behavior, you should use this type to display the "Test" String instead of ToolStripStatusLabel

Browser other questions tagged

You are not signed in. Login or sign up in order to post.