Enter "&" symbol into a text Label in Windows Forms?
Add another ampersand in front of it, so: &&
Or have a look at the following: Label.UseMnemonic (MSDN documentation)
Two ways:
Escape it with another ampersand (
&&
).Set
UseMnemonic
for that label tofalse
. This causes all ampersands within the text to be taken literally so you don't need to double any of them. You'll lose the underlining and access key features though.You can set the value either in the designer, or in code:
myLabel.UseMnemonic = false; myLabel.Text = "Text&Text";