Home All Groups Group Topic Archive Search About
Author
21 Mar 2006 12:06 PM
Tull Clancey
Hi.

I have an application with several menus, see last post, still not resolved.

I have another problem....

The menus have been created using the menu editor, I can't find a way to add
icons to the menu items.  I can find examples of creating the menus is code
and assigning icons, but nothing if I've created the menu system already.

Any ideas?

Cheers,
Tull.

Author
21 Mar 2006 7:51 PM
Herfried K. Wagner [MVP]
"Tull Clancey" <tull.clan***@btopenworld.com> schrieb:
> The menus have been created using the menu editor, I can't find a way to
> add icons to the menu items.  I can find examples of creating the menus is
> code and assigning icons, but nothing if I've created the menu system
> already.

Which version of .NET are you using?  If you are using .NET Framework 2.0,
you may want to replace the standard menu controls with MenuStrip controls
which provide design-time support for assigning images to the menu items.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
21 Mar 2006 9:21 PM
gene kelley
On Tue, 21 Mar 2006 12:06:12 +0000 (UTC), "Tull Clancey"
<tull.clan***@btopenworld.com> wrote:

Show quoteHide quote
>Hi.
>
>I have an application with several menus, see last post, still not resolved.
>
>I have another problem....
>
>The menus have been created using the menu editor, I can't find a way to add
>icons to the menu items.  I can find examples of creating the menus is code
>and assigning icons, but nothing if I've created the menu system already.
>
>Any ideas?
>
>Cheers,
>Tull.
>

I assume you are finding how to add a .bmp or .png image for
menustrips and toolstrips as a resource.  With regards to .ico files,
the older 16 and 256 color .ico files cannot be used in design in
these controls. They can be used at runtime when converted to a
bitmap.  However, .ico files that are of the XP variety will work.  In
this case, when you go to import the resource, change the file type in
the file dialog to *.* all files.  If the .ico file is of the XP type
it will load, but if the older variety, you will get an "invalid"
message.
(VB2005)

Gene