Mnemonic/Accelerator Character in Button Text?

  • Thread starter Thread starter josepk
  • Start date Start date
J

josepk

Hello,

Is there a way to display a mnemonic character in a button's text
property? For example, "&Login" would translate to "Login" with an
underscore under the "L".

I know this is not supported natively in the CF but wondering if
someone has found a workaround.

Thanks,

Joe
 
I haven't done this, but you could use ApplicationEx and an IMessageFilter
from OpenNETCF and catch key combinations like Alt+<whatever> and then,
iterate through the controls on the current form, which you'd also have to
keep track of, and find the one that should be activated.

Paul T.
 
Yes there is:
myLoginButton.Text = "&Login";

works perfectly fine with me. The only problem is you can press ALT+L until
the cows go home. It won't work. I had to implement myself a KeyDown even to
handle it.

Cheers,
Sitar.
 
Maybe I should have mentionned that I have CF SP3. I never tried it with
SP2. But the mnemonic character is "underscored" with SP3 at least.

Cheers,
Sitar.
 
Back
Top