OpenNETCF WebBrowser - catching keys?

H

Hilton

Hi,

Is there any way to be notified on a key press using OpenNETCF's WebBrowser?
i.e. if the user presses a key on the Smartphone. I'd like to be able to
detect any key press, but at the moment the Back key is practically
impossible to treat correctly. MS's ListView seems to gobble it up and now
we cannot get key presses from OpenNETCF's WebBrowser.

I need to use CF 1.0 since I believe that it is unrealistic to force folks
to upgrade to CF 2.0.

Any help very much appreciated.

Hilton
 
P

Paul G. Tobey [eMVP]

Some keys yes, but others are used directly by the browser control and don't
appear to be catchable, at least by any normal method. There was a thread a
while back about this. So far as I know, no one has yet accomplished
catching all keys when the browser control is active, though. I suppose
that you could rewrite the main message loop for your application to grab
all key presses sent to any window in the application and do something with
them before dispatching them to the window that should get them. Since
you're using OpenNETCF, you might be able to just add a message filter to
your ApplicationEx and have that filter handle all WM_KEYDOWN and/or WM_CHAR
messages.

Paul T.
 

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