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. Mobile Development
  3. Mobile
  4. About using keybd_event to send "Tab" problem.

About using keybd_event to send "Tab" problem.

Scheduled Pinned Locked Moved Mobile
help
3 Posts 2 Posters 1 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.
  • L Offline
    L Offline
    lovnin
    wrote on last edited by
    #1

    When i use keybd_event to send "Tab"(VK_TAB 0x09) key, it doesn't work in mobile. But other keys can work. Thanks a lot. ;P

    S 2 Replies Last reply
    0
    • L lovnin

      When i use keybd_event to send "Tab"(VK_TAB 0x09) key, it doesn't work in mobile. But other keys can work. Thanks a lot. ;P

      S Offline
      S Offline
      sivaddrahcir
      wrote on last edited by
      #2

      You should be able to send the Tab key, but you will run into problems if you want to actually handle it with a KeyEventHandler. If you can't use another key for whatever application you are working on, see this MSDN magazine article (it specifically addresses the Tab key issue): Add Keyboard Support to Compact Framework Apps by Trapping Windows Messages[^] Disclaimer: the article is a few years old now and I have not tried out the code myself -- it looks to be fairly involved.

      Blog: http://windowsclientdevelopment.spaces.live.com FAQs: http://windowspresentationfoundation.wikispaces.com http://windowsmobile.wikispaces.com http://vsto.wikispaces.com

      1 Reply Last reply
      0
      • L lovnin

        When i use keybd_event to send "Tab"(VK_TAB 0x09) key, it doesn't work in mobile. But other keys can work. Thanks a lot. ;P

        S Offline
        S Offline
        sivaddrahcir
        wrote on last edited by
        #3

        Actually, it looks like you can handle the Tab key if you are running on a device with .NET CF 2 or 3.5. In your Form constructor, set this.KeyPreview to true. You can now use the Form's KeyDown event to check for the Tab key. Of course, I am making a number of assumptions about what you are trying to do and what the problem is (besides it doesn't work).

        Blog: http://windowsclientdevelopment.spaces.live.com FAQs: http://windowspresentationfoundation.wikispaces.com http://windowsmobile.wikispaces.com http://vsto.wikispaces.com

        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