Issue adding MenuItem Image whitin plugin

i’m having some problems trying to add an image to my custom menuItem included into my plugin.
I don’t know why but the image added to my menuItemButton doesn’t show in the main menu.
The text is correctly shown, but nothing to do with any image…

Can someone help me figured out what i’m doing wrong?

thanks in advance

Where do you want to add the button.
To the top toolstrip ? (Beside the Flight Data, Flight Planner and other buttons ?)

Yes in the top toolstrip.

Use this from the Init function of the plugin.

    Bitmap lg = (Bitmap)(resources.GetObject("logo2"));
    ToolStripButton mi = new ToolStripButton();
    mi.Size = lg.Size;
    mi.BackColor = Color.Transparent;
    mi.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
    mi.Image = lg;
    mi.Text = "My Menu";
    mi.Margin = new Padding(0);
    mi.Name = "bMyMenu";
    mi.Overflow = ToolStripItemOverflow.Never;
    mi.ImageScaling = ToolStripItemImageScaling.None;

Thank you, will try and let you know if it worked.

It worked great, thank you very much!!!