I would like to make it easy for the user to enter a few users at a time.
The keydown event uses "ScanCode = 28" to determine when the "Enter key" was pressed. This action adds a new user name to a list box of users.
Any ideas on how I can set the keyfocus back to the string control, on which a "key down" Event was detected, so that the user automatically goes back to the string control to add the next user?
Thanks for the advice. I omitted to say that I did try to set the key focus to True, inside the event loop, without success. The event loop is inside a while loop.
What happened when you used the property node? Here's a small example. I used the event Value Change for the string control but yours should work in a similar fashion. If you still can't get it to work, attach your VI that demonstrates the problem.
Attached below is an example I created that shows how to use the "Key Down?" filter event and change the control that the text is entered into. It works by swaping string controls when the enter key is pressed.
Dennis, I still get an error (error 9) "Labview 7 is newer than Labview 6.1". Am I doing something wrong? I saved your example to my hard drive and tried opening it.