Login  
Search All Forums
Dart Home | PowerTCP Emulation for .NET | Custom Development Reply | PowerTCP Emulation for .NET Topics | Forums   
AuthorForum: PowerTCP Emulation for .NET
Topic: F1, F2, etc. keys
jonathan.nix

From: Tualatin, OR USA
Posts: 4
Member Since: 10/15/04
posted October 15, 2004 3:28 PM

First of all, I want to say a big THANKS for creating such a good control and API. I was able to do a rapid prototype with it, and so far it looks like I won't need to reimplement anything. I would recommend it since I was able to do things I thought wouldn't be possible.

What I wanted to inquire about though, is that when a key like F1 is pressed into the Vt control, the KeyDown event is fired but the KeyPress event doesn't fire, and the key doesn't get sent through the telnet connection.

What I might have to do is to trap those keys in KeyDown and then send out the appropriate byte sequence as if I'm doing a custom key mapping. However I'm not sure if it'd be the same sequence on Vt52 through 320, and I don't feel like figuring out the sequences for all those keys.

What do you suggest doing? I would hope the control would translate those keys into the necessary byte sequence for me like it does all the other keys.

What is the key code for F1, etc. anyway? Is it a single byte? Does Windows tell me in the EventArgs parameter sent to the KeyDown function??

Thanks,

Jonathan
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 15, 2004 3:35 PM

Type F1 in the search box above, then click go. You will find many threads dealing with this issue.
Reply | PowerTCP Emulation for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX