Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Strange behavoir on KeyDown in CompactFramework

Strange behavoir on KeyDown in CompactFramework

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J Holzer
    wrote on last edited by
    #1

    Hi! I have a Motorola MC7090 that runs a .Net Compact Framework - application. On the mainform i catch the "KeyDown"-Event, which work fine for "regular" keys. As the MC7090 (as most Windows Mobile devices) has some custom keys, two for volume (+/-) on the left side, and another key on the right side. When i open the application i get a key-down-event from this key on the right side. After klicking a button on the touchscreen the event is not longer thrown. All other keys (keypad 1-9, etc...) work fine. Just this one key is not working. Unfortunately my customner wants exacly this key to work. Does anyone have any idea how i could make this key work? Thanx! J.

    E 1 Reply Last reply
    0
    • J J Holzer

      Hi! I have a Motorola MC7090 that runs a .Net Compact Framework - application. On the mainform i catch the "KeyDown"-Event, which work fine for "regular" keys. As the MC7090 (as most Windows Mobile devices) has some custom keys, two for volume (+/-) on the left side, and another key on the right side. When i open the application i get a key-down-event from this key on the right side. After klicking a button on the touchscreen the event is not longer thrown. All other keys (keypad 1-9, etc...) work fine. Just this one key is not working. Unfortunately my customner wants exacly this key to work. Does anyone have any idea how i could make this key work? Thanx! J.

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      Try overriding WndProc and checking for the message manually?

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

      J 1 Reply Last reply
      0
      • E Ennis Ray Lynch Jr

        Try overriding WndProc and checking for the message manually?

        Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

        J Offline
        J Offline
        J Holzer
        wrote on last edited by
        #3

        That was my emergency-solution. The big question is why an event is raised in the beginning, but not after a button was pressed... That´s kind of strange to me...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups