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. C#
  4. Keyboard is not working (such as page down)

Keyboard is not working (such as page down)

Scheduled Pinned Locked Moved C#
help
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.
  • R Offline
    R Offline
    Ronenb
    wrote on last edited by
    #1

    Hi, I’ve define a panel on my from and define the panel dock as none, and increase the panel height each time I add new item at the button of the panel, once the panel size exceed form size, the form create vertical scroll bar and its great. The problem is that I can use the mouse in order to scroll down the panel but the keyboard is not working such as page up, page down, up key and down key Any idea, I look at the form and panel property and I didn’t find anything that could help Thanks, Ronen

    C 1 Reply Last reply
    0
    • R Ronenb

      Hi, I’ve define a panel on my from and define the panel dock as none, and increase the panel height each time I add new item at the button of the panel, once the panel size exceed form size, the form create vertical scroll bar and its great. The problem is that I can use the mouse in order to scroll down the panel but the keyboard is not working such as page up, page down, up key and down key Any idea, I look at the form and panel property and I didn’t find anything that could help Thanks, Ronen

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If you have a scroll bar and the control has focus, then it will either just work ( which would have been my guess ), or you need to write code to handle it ( which seems odd to me, but if it doesn't work at all, that's probably the solution ). Does the control have focus when you press the keys ?

      Christian Graus Driven to the arms of OSX by Vista.

      R 1 Reply Last reply
      0
      • C Christian Graus

        If you have a scroll bar and the control has focus, then it will either just work ( which would have been my guess ), or you need to write code to handle it ( which seems odd to me, but if it doesn't work at all, that's probably the solution ). Does the control have focus when you press the keys ?

        Christian Graus Driven to the arms of OSX by Vista.

        R Offline
        R Offline
        Ronenb
        wrote on last edited by
        #3

        Yes, Itry to use it option at the panel_paint func I write if(panel1.CanFocus) { panel1.Focus(); } and it still doesn't work Ronen

        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