By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,027 Members | 1,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,027 IT Pros & Developers. It's quick & easy.

Weird Button Caption Problem

P: n/a
For some reason if I set the text property of a command button to
something like "Mr & Mrs Smith" the end result is a command button with
the caption of "Mr _Mrs Smith". Does anybody know how I can include
the & sign in my command buttons? Is this a bug? Is there a work
around?

Please help, I really need the & symbol to work as I'm reading these
names from a database and it looks daft with the underscore...

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Jasper Jones" <ja*******@gmail.com> schrieb:
For some reason if I set the text property of a command button to
something like "Mr & Mrs Smith" the end result is a command button with
the caption of "Mr _Mrs Smith". Does anybody know how I can include
the & sign in my command buttons? Is this a bug? Is there a work
around?


Replace each single "&" character by two consecutive "&" characters ("&&").

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
Thank you so much.

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.