How to add ampersand(&) symbol to dialog control captions?

15 06 2008


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.

Advertisements