Jump to content

Set input mode of non-edit controls..? (Forms, ListView, etc)


Recommended Posts

Posted

Hi,

I'm writing an application that is capturing keystrokes on a form (or a listview, which ever I can get to work lol). There is no text box or anything, just a form visible to the user. Now, capturing the keystrokes is easy enough. The problem is, it seems the form has it's input mode set to NUMBER. I am testing on a Blackjack II, and when I hit the S key I don't get a character (it's the STAR key) and when I hit one of the keys with a number, I see the number instead of the letter.

I want to change this so the input mode is alpha by default. I have tried using Win32 to send EM_INPUTMODE to the Form, but this does not work. Is there any way I can set the input mode whenever the form is visible so that ALPHA is default.. and not number mode?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.