views:

39

answers:

2

I have a menu item that needs to be formated like This & That, but the & is converted to an underscore. Is there an escape character to actually be able to display the &?

+5  A: 

Just double the '&' character

menuItem.Text = "Foo && Bar";
Thomas Levesque
Pieces
+5  A: 

Either use a double ampersand (but that will change the string literal) or you should be able to set the UseMnemonic property of the menuitem to false.

Cags