very simple question: what is the purpose of & in ""
-
I just started C# 2 weeks ago and I'm loving it. One simple question. btnStart.Text = "&Start"; What is the purpose of the &. Thank you to the forum, you guys / gals are great.
Normally you use the "&" when naming menu items. If you run your program the character preceded by the ampersand is underlined in every menu item and you can "simulate" clicking the menu item by pressing the respective character whilst holding Alt. So it allows users to access the menu without using the mouse.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
I just started C# 2 weeks ago and I'm loving it. One simple question. btnStart.Text = "&Start"; What is the purpose of the &. Thank you to the forum, you guys / gals are great.