NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Enter key

I have a C# .net dll that creates a form and has a button. When I use this dll in TestStand I can catch keypress events, but when ENTER is pressed I cannot catch it.  I can catch the ENTER key press event in .net enviroment using

ProcessCmdKey

but cannot get it in TestStand. Is TestStand handling these these command buttons separately?
 
 
Ifti
0 Kudos
Message 1 of 2
(3,032 Views)

Hi iftiuk,

maybe you should set the focus to your button, or try to set it as a AcceptButton of your Form, like: "this.AcceptButton = yourButton;"

Message Edited by My NI on 07-20-2007 06:40 AM

Message Edited by My NI on 07-20-2007 06:41 AM

Regards
MY
0 Kudos
Message 2 of 2
(3,004 Views)