Sign in to follow this  
jaylach

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

Recommended Posts

jaylach    0

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.