How to underline the first letter of a Button's Text to indicate the AccessKey?

ajeeshco

Well-known member
Joined
Sep 19, 2006
Messages
257
Location
Cochin, India
Programming Experience
3-5
Hi,
I would like to know whether it is possible to underline the first letter of a Button's Text to indicate the AccessKey. If possible then How? Thanks In Advance.
 
see http://msdn2.microsoft.com/en-us/library/ms178233.aspx, solution is to use a label control and associate it with the button, the label text can use html so you can underscore a letter there. The AssociatedControlID is new with .Net 2.0, but that doesn't prevent you from using a label to have this presentation of the accesskey set for the button.
 
Hi JohnH,
Since html can't be used as button text I think it will be better to use ToolTip to indicate the access key rather than a label. If you have any other suggestions please let me know.
 
Back
Top