I have got a project where I need to detect a key press at any time that the form is open and send out different serial data dependent on the keycode detected. The form however has text boxes, which I need to be able to type into and not flag up as a form keydown event.
I know in VB5 you could use the following...
If TypeOf Screen.ActiveControl Is TextBox Then
is there a VB.NET equivalent?
Thanks in advance