OpenNETCF WebBrowser - catching keys? - DOTNET

This is a discussion on OpenNETCF WebBrowser - catching keys? - DOTNET ; 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 ...

+ Reply to Thread
Results 1 to 2 of 2

OpenNETCF WebBrowser - catching keys?

  1. Default OpenNETCF WebBrowser - catching keys?

    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



  2. Default Re: OpenNETCF WebBrowser - catching keys?

    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.

    "Hilton" <nospam@nospam.com> wrote in message
    newsMX6i.4251$u56.1159@newssvr22.news.prodigy.net...
    > 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
    >
    >




+ Reply to Thread

Similar Threads

  1. Changing map keys (no reordering of keys)
    By Application Development in forum c++
    Replies: 3
    Last Post: 11-28-2007, 10:17 AM
  2. Top Five OpenNETCF
    By Application Development in forum DOTNET
    Replies: 6
    Last Post: 11-22-2007, 09:01 AM
  3. OpenNetCF
    By Application Development in forum DOTNET
    Replies: 5
    Last Post: 05-21-2007, 03:59 AM
  4. Determining all shortcut keys in use (including Function keys)?
    By Application Development in forum Adobe Acrobat
    Replies: 1
    Last Post: 12-31-2006, 02:01 PM
  5. PDA WSE 2 & OpenNetCF
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 11-13-2006, 05:44 AM