Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ampersand Character on Command Button 3

Status
Not open for further replies.

joatmofn

Technical User
Jan 12, 2003
72
US
Hi, I need to place an ampersand sign (&) on a command button.

I tried quoting it with quotes, double quotes, and a slash.

I'm thinking that I could create a string, then programmatically change the buttons caption. But thought I'd check here first for something simpler.

Any help would be appreciated. Thanks.
 
This is a Microsoft Feature:

You need to use 2 & to get 1 to show.

Frank J Hill
FHS Services Ltd.
frank@fhsservices.co.uk
 
MAN

I've always pondered that one.
Thanks Frank.

-->Just because you can, doesn't mean you should.
 
NPSHr,

Go ahead, give him a star.

Jeremy

==
Jeremy Wallace
AlphaBet City Dataworks
Affordable Development, Professionally Done

Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
 
Already done, Jeremy. How long does it take to "apply". It's not showing up after a half hour...

-->Just because you can, doesn't mean you should.
 
Hey Trensetter, Thanks for that tip on the double &. I gave you a star.
 
Many thanks - it is appreciated!

Frank J Hill
FHS Services Ltd.
frank@fhsservices.co.uk
 
May I add to this hot key chat...

I have a "search form" where user can input text in different fields. SQL is created on the fly when user presses "search" (and results are shown in details section of form.) The text fields for gathering search criteria are in the form's header. As are the "search," "clear" "return to switchboard" etc buttons.

Does anybody have any idea why my hot keys (accelerator keys) only work conditionally? To be exact, it seems they only work when a search has run, AND pulled results. No results, no hot key function. Wierd. Or not?...
 
I suspect it's a matter of focus -- at least sometimes the form doesn't seem to have focus by default when it's opened, so until you click on something it's ignored.

You might put something like [tt][YourButtonName].SetFocus[/tt] in the OnOpen event for your form.

(Sorry, this is from memory of a problem long ago, so it may not help.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top