ESC key in code
ESC key in code
(OP)
Hi!
I hope this question isn't too basic. I am working on an app that uses an MSComm control, and I need to send it the equivalent of the escape key, but generated in code. I guess I expected to find a string constant (e.g. "vbCr") or an ascii code for it, but I can't. Could someone point me in the right direction with this?
Thanks!
-Marc
I hope this question isn't too basic. I am working on an app that uses an MSComm control, and I need to send it the equivalent of the escape key, but generated in code. I guess I expected to find a string constant (e.g. "vbCr") or an ascii code for it, but I can't. Could someone point me in the right direction with this?
Thanks!
-Marc
RE: ESC key in code
Try sending the value vbKeyEscape. I believe the Ascii code is 27, but I am not certain about it. If that doesn't help try the VB object browser under KeyCodeConstants. Hope this helps.
M.
RE: ESC key in code
-ml
RE: ESC key in code
-Marc