Okay, this is just a simple trick to determine whether CAPS is pressed because some people here use API to determine whether the CAPS Lock is pressed. [QUOTE] KeyDown and KeyUp don't detect exactly the same information as KeyPress. KeyPress detects a character in its KeyAscii parameter, but KeyDown and KeyUp detect a physical keystroke in their KeyCode parameter. [LIST] [*]KeyUp and KeyDown can detect keystrokes not recognized by KeyPress, such as function, editing, and navigation keys. [*]KeyPress can distinguish between different ASCII characters generated by the same physical keystroke. [/LIST] [/QUOTE] Where did I get KeyCode = 20? Try …

Member Avatar
Member Avatar
+0 forum 7

The End.