Benoît,

Thanks for the reply. I don't seem to understand how to use your advice. Can
you please provide a working example.

Thanks for any assistance.

Charlie Ogier
Les îles Anglo-Normandes



Benoît Minisini wrote:
> 
> Le 15/03/2012 14:21, Cogier a écrit :
>>
>> Rolf,
>>
>> Thanks for the reply. Yes it does work in Linux and I can get it to work
>> in
>> a TextBox but as you say it needs to be in focus and I think the program
>> will look silly if at the time of a scan the particular TextBox is not in
>> focus. I know there is a way to capture a single key press but I want to
>> capture the whole string. The input string is terminated by a "Return"
>> code
>> so I can handle the end of the string with code.
>>
>> So I am looking for a way to capture the input string directly from the
>> "Keyboard" with code rather than a TextBox.
>>
>> Thanks,
>>
>> Charlie
>>
>>
> 
> Define an public Application_Keypress() event handler in the startup 
> class. It will catch all key events received by the application (but not 
> the key events received by other applications of course).
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 
-- 
View this message in context: 
http://old.nabble.com/Keyboard-input-help-requested-tp33496560p33522382.html
Sent from the gambas-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to