djanim8
01-14-2005, 10:05 AM
How do you display an "&" symbol in a button?
Display an "&" in a buttondjanim8 01-14-2005, 10:05 AM How do you display an "&" symbol in a button? Flyguy 01-14-2005, 10:09 AM && OnErr0r 01-14-2005, 10:09 AM Label1.Caption = "&&foo" djanim8 01-14-2005, 10:40 AM Label1.Caption = "&&foo" Thanks... but whats "foo" and whats the "therory" behind the "&&" to make it work? OnErr0r 01-14-2005, 10:55 AM "foo" is a string of three letters. ;) "&&" is an escape sequence. One ampersand makes an underlined character and makes that character an access key. Two ampersands displays a single ampersand and no underline nor access key is created. For the full description, read about the caption property in the MSDN. Monkey 01-16-2005, 08:07 AM so would three ampersands make an underlined ampersand? John 01-16-2005, 09:10 AM No, the "&" can't be used as an access key. If you put in "&&&File" You end up with &File. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum