Link to home
Start Free TrialLog in
Avatar of LongDave
LongDave

asked on

Can't display ampersand in tab caption

Using a Tabstrip control in VB6, I cannot have the character "&" in the caption of a tab - the control interprets this as a shortcut definition for the following character. I have tried formatting the string with a "chr$(38) embedded in the string, but to no avail. Is there any way I can display the "&" character in the string?
ASKER CERTIFIED SOLUTION
Avatar of plq
plq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LongDave
LongDave

ASKER

appari - my mistake, I didn't see the "use &&" in your solution, I only saw the comment about "useMnemonic". Since this is VB6, there isn't a useMnemonic property, so I (unfairly) hadn't awarded you any points. Is there a Moderator that can correct this? I'd like to give appari 100 points, with 200 going to the other experts. Thanks - the question is closed, and the solution worked fine.
I,m sorry, I really thought I had awarded points for this. I'll check back and let you know.
Forced accept.

Computer101
EE Admin