Link to home
Start Free TrialLog in
Avatar of Melvinivitch
Melvinivitch

asked on

How do I underline a character in a label's caption WITHOUT getting the Alt-Letter functionality?

I have a label and need to underline the first letter of its caption, but I do NOT want the Alt-Letter keystroke to get automatically handled... This is because I have a custom handler for that Alt-Letter keystroke, so I can't have some darn label intercepting it...

Alternatively, if I knew what (if any handle-able) event(s) get fired when one does hit that Alt-Letter keystroke, I could just call my custom handler from that event-handler...


Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Sethi
Sethi
Flag of India 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
YOu can also use the following label control in which you can write HTML. This will let you underline a portion of your text. The control is free of cost.:
http://vcreations.net/product.asp?pID=45
Avatar of Naveen Swamy
Naveen Swamy

hi,
use line control, to underline

Regards,
M.Naveen Swamy
I did not understand, why I got B grade for the answer? Did you get a better workaround?
Avatar of Melvinivitch

ASKER

Sorry - I was hoping for a way to catch the event that gets fired, or to disable that functionality for the label...

And when it asks for a grade, it lists B as "Good", which your answer was... I certainly didn't mean to imply that it was bad. I'm new here, so perhaps I don't understand how grades are typically assigned. If workable answers always get an A, I'll happily re-grade you to an A, if that's possible. ... I was just going by the descriptions listed next to the grades when I'm presented with the grading option...
Not a problem. You cant capture the event with label because hot keys are not fired with label controls. Infact instead of going through all these workarounds, I should have told you that earlier and it never struck me. Probably I deserve B than A :-)