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
2010-07-29 15:34:57
Pieces
2010-07-29 15:36:09
+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
2010-07-29 15:37:10