OpenNETCF - using ApplicationEX for multiple forms

  • Thread starter Christopher Pragash
  • Start date
C

Christopher Pragash

Hello All,

I am trying to use the ApplicationEX class from OpenNETCF. The "Run" method
of ApplicationEX seems to be designed for one a single form. I have a
project with Multiple forms, some forms being activated on user request from
within other forms. What is the best way to capture keypress events on
controls inside all the forms and also process them on an individual basis,
like an event handler inside each form? Any thoughts or suggestions would be
really helpful.

Thanks,
Chris
 
C

Chris Tacke, eMVP

It's not "designed for a single form", it's designed for a single UI thread
and message pump. If you hide one form and show another, the same pump is
used (unless you use ShowDialog, which I've not implemented yet in the SDF).
 
C

Christopher Pragash

Chris,

Thanks for the response. What would be your suggestion on how to use the
ApplicationEX class for multiple forms. Some forms do instantiate other
forms and call the ShowDialog !! My requirement is to trap specific keyboard
events (such as up arrow, down arrow etc) on all the controls inside the
different forms. I have till now successfully implemented these events on
one form but I have to extend it to multiple forms. Any thoughts or
suggestions would be really great.

Thanks,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top