Handle Keypress on FormLevel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Finn Stampe Mikkelsen

    #1

    Handle Keypress on FormLevel

    Hi

    Can i handle keypress on a form-level, with no regard to wath control has
    focus and which tabcontrol is visible???

    If so, could you include sample code with weight on F-keys and key-codes in
    general

    /Finn


  • Finn Stampe Mikkelsen

    #2
    Re: Handle Keypress on FormLevel

    Forgot to say, that i'm using VB.NET 2003

    /Finn


    "Finn Stampe Mikkelsen" <stampe@city.dk skrev i en meddelelse
    news:OTirT1TWHH A.392@TK2MSFTNG P06.phx.gbl...
    Hi
    >
    Can i handle keypress on a form-level, with no regard to wath control has
    focus and which tabcontrol is visible???
    >
    If so, could you include sample code with weight on F-keys and key-codes
    in general
    >
    /Finn
    >

    Comment

    • Chris Dunaway

      #3
      Re: Handle Keypress on FormLevel

      On Feb 25, 6:35 pm, "Finn Stampe Mikkelsen" <sta...@city.dk wrote:
      Forgot to say, that i'm using VB.NET 2003
      >
      /Finn
      >
      "Finn Stampe Mikkelsen" <sta...@city.dk skrev i en meddelelsenews: OTirT1TWHHA.392 @TK2MSFTNGP06.p hx.gbl...
      >
      Hi
      >
      Can i handle keypress on a form-level, with no regard to wath control has
      focus and which tabcontrol is visible???
      >
      If so, could you include sample code with weight on F-keys and key-codes
      in general
      >
      /Finn
      Set the Form's KeyPreview property to True and then handle the
      KeyPress, KeyDown, KeyUp events as required.


      Comment

      Working...