Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capslock

Status
Not open for further replies.

oldwiseone

Programmer
Sep 28, 2002
18
GB
I am using a touch screen as data input screen and have made up a keyboard on screen for the user. I am using labels for the buttons and the mousedown function and sendkeys to send the users keyboard info to the data fields. The only problem that i have is with the capslock function. I am able to read the capslock state using the nVirtKey api.
however I can't find no way of actually setting the capslock key programmablly. Sendkeys.send"{CAPSLOCK}" does not work. all other sendkeys work. any ideas?
Mick.
 
Why are you using sendkeys? Why not just programm the .Click() events to put the label's character into the current text field?

Like:

CurrentTextField.Text += Label.Tag
 
that does not solve my problem with the capslock, how do I set capslock??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top