Interrupting Events from within Parent Control

  • Thread starter Thread starter Trollpower
  • Start date Start date
T

Trollpower

Hello,

ive got the following problem, which i hope gets solved here.

I ve got a Form with a Number of Controls in it (Button, Listboxes and
Textboxes). The user can use a config-file to control the output
target of an attached scanner. If i use the scanner while a Textbox is
focussed, the scanned code gets inserted into that textbox. My problem
is, that i need to decide where the scanned code gets put to. For
example, if the output target is Textbox 'A' and Textbox 'B' and
Button '1', then the scanned code has to be atttached to these three
controls.

Dows anyone knows how to intercept a Keypressed event for example on a
parent control(Form), since all the controls i mentioned above, are
added to the Form. The reason for this is, that if the scanner is
used, i want to decide in this one event, where to put the scanned
text to and even if i handle the scanned code in any way.

Thanks in advance

Greeting

Jens Meyer
 
Hi Chris,

thank you very much for your answer. I took a look into the provided
classes on opennetcf. I opened the ApplicationEx archive, but i dont
know how to use the IMessage Filterstuff in my code. Can you give me
any hint on this? I dont get used tho the Help files, so any help on
this would be appreciated.

Thanks in advance

Jens
 
Take a look at the sample provided, or the IMessageFIlter implementations
that Peter Foot and Alex Yakhnin have put together:

http://www.opennetcf.org/samples.asp#forms
http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=1212
http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=1213

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


Trollpower said:
Hi Chris,

thank you very much for your answer. I took a look into the provided
classes on opennetcf. I opened the ApplicationEx archive, but i dont
know how to use the IMessage Filterstuff in my code. Can you give me
any hint on this? I dont get used tho the Help files, so any help on
this would be appreciated.

Thanks in advance

Jens

"Chris Tacke, eMVP" <ctacke[at]Open_NET_CF[dot]org> wrote in message
Yes. Use a custom IMessageFilter implementation with the
OpenNETCF.Application class.
www.OpenNETCF.org/forms.asp

-Chris
 
Back
Top