Putting a visible '&' character in the name of a form component


I know that the '&' character in the name of a form component specifies which key will also trigger the component's event.  So, a '&' character doesn't show up in the name - it only underlines the character in the name it's in front of.

So, what if you want a '&' character to be visible in the component?  For example, what if you want a button that says "Sort & File" ?

Thanks in advance,
Who is Participating?
AlexFMConnect With a Mentor Commented:
Sort && File
sabeeshConnect With a Mentor Commented:
You can give && characters for a get & in display
angus_young_acdcConnect With a Mentor Commented:
For me using this.Text = "Hello & Goodbye" in the Form1_Load works perfectly fine.  
Gautham JanardhanConnect With a Mentor Commented:
button properties

text = "Sort && File"

if u wanna use it in code


btnUpdate.Text = "Sort && File";
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.