Alex Rivera | Logout

Enter "&" symbol into a text Label in Windows Forms?

Asked 2010-12-01T14:01:22.740
115

How would one enter special characters into a Label in C# (Windows Forms)?

If you try to write a "&" into a label you'll get a sort of underscore instead..

So what's the C# equivalent of "&"? ("\&" obviously doesn't work).

Edit
Report

1 Answer

22

Add another ampersand in front of it, so: &&

Or have a look at the following: Label.UseMnemonic (MSDN documentation)

answered 2010-12-01T14:03:43.817

Your Answer