Groups | Blog | Home
all groups > dotnet general > april 2006 >

dotnet general : "& character" and MenuStrip


Kris
4/26/2006 4:35:02 PM
Hi..

Why is it impossible to add a "&" character to item in VS2005 menustrip?

In properties, it preserves itself as "&", but in menu, shows up as some
small line instead of &.

Mattias Sjögren
4/27/2006 7:47:14 AM
[quoted text, click to view]

Because & has since a long time back been used to set the keyboard
shortcut key for buttons and menu items. You can get a & character by
writing && instead.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button