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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ESC key in code 2

Status
Not open for further replies.

marct

Programmer
Apr 6, 1999
32
0
0
US
Hi!<br>
<br>
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?<br>
<br>
Thanks!<br>
<br>
-Marc
 
Marc -<br>
<br>
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.<br>
<br>
M.
 
Thanks! It worked great!<br>
<br>
-Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top