Menu Item Icon shows in the IDE but does not show when app is runn

M

Mark Hollander

Hi All,

I am sitting with a bit of a problem.

I have a MDI Form and added a menu strip, then used the "Insert Standard
Items" from the Right Mouse Click Menu.

I then added a menu item below the File/Open menu item to which I have
assigend a 16x16 graphic. When working with the menu while in the IDE I see
the graphic, but as soon as I run the application the graphic does not appear
next to the menu item.

I have tried using various graphic formats, eg: .bmp .gif .ico .png and have
even tried putting the graphic in as a resource to na avail.

I would appreciate any help that can shed light on this issue.
 
J

jp2msft

I would think what you did should work, Mark.

Did you use a "Local resource" for your image or did you use the "Project
resource file"? If it is a "Local resource", you may want to also try adding
the image to your project in Solution Explorer. If it is a "Project resource
file", it should appear under your project's Properties page under the
Resources tab (select either "Images" or "Icons" in the Resources pane's drop
down list).

Does it appear in Solution Explorer? (assuming you are running Visual Studio)

One thought: Your image may need to be an icon file. Your bitmaps can easily
be converted to an icon using the small, free "Imagicon" application from
www.deviouscodeworks.co.uk. I have found that application to be one of my
secret weapons! :)
 

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

Top