ZmrAbdulla
Technical User
How can I detect and remove CAPSLOCK?
Iam using a SendKeys "Some Text" to Rich Text Box by a click of command button.
SendKeys "Some {enter} Sample {enter}Text {enter} Here" is the complete entry.
So it will be printed to RTB like
Some
Sample
Text
Here
If the CAPSLOCK is on then it will print like
sOME
sAMPLE
tEXT
hERE
I have found some sample codes from other VB sample site that is working well. But the problem is SendKeys are working faster than the code detecting the CAPSLOCK. The code resides in a module to be accessible for all the command buttons.
I need either to pause the SendKeys until it check and remove the CAPSLOCK also to restore the CAPSLOCK so the user may not be knowing something happened or a faster code as a solution.
There are a few threads discussing this in these forums found by a quick search. If anyone can direct me also be appreciated.
Thanks
Zameer Abdulla
Visit Me
Iam using a SendKeys "Some Text" to Rich Text Box by a click of command button.
SendKeys "Some {enter} Sample {enter}Text {enter} Here" is the complete entry.
So it will be printed to RTB like
Some
Sample
Text
Here
If the CAPSLOCK is on then it will print like
sOME
sAMPLE
tEXT
hERE
I have found some sample codes from other VB sample site that is working well. But the problem is SendKeys are working faster than the code detecting the CAPSLOCK. The code resides in a module to be accessible for all the command buttons.
I need either to pause the SendKeys until it check and remove the CAPSLOCK also to restore the CAPSLOCK so the user may not be knowing something happened or a faster code as a solution.
There are a few threads discussing this in these forums found by a quick search. If anyone can direct me also be appreciated.
Thanks
Zameer Abdulla
Visit Me