Gold mine of Visual C++ tricks!
Archive for June 15, 2008
How to add ampersand(&) symbol to dialog control captions?
Jun 15th
![]()
For dialog controls we can assign keyboard accelerators. If you give the button text as “&Add”, then really it will become “Add” because the ampersand character is used to mark the keyboard accelerator for that control. But what to do if you want the button text to be “Add & Refresh“?
![]()
Just use && if you want ampersand as part of caption instead of Keyboard accelerator marker. For instance see the screenshot.

![]()
Targeted Audience – Beginners.