Cancel event action

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boni

    Cancel event action

    Dear all,
    I would like to cancel the keydown event after I handled it in my control.
    But the handled=true of the event don't do the job. Is the some stronger
    method to clear key buffer and remove enevnts?
    Thanks,
    Boni


  • W.G. Ryan eMVP

    #2
    Re: Cancel event action

    Use e.Handled = true w/ KeyPress - that should do it for you.

    --
    W.G. Ryan MVP (Windows Embedded)

    TiBA Solutions
    www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
    "Boni" <oilia@nospam > wrote in message
    news:OCX4OTSaFH A.2980@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Dear all,
    > I would like to cancel the keydown event after I handled it in my control.
    > But the handled=true of the event don't do the job. Is the some stronger
    > method to clear key buffer and remove enevnts?
    > Thanks,
    > Boni
    >
    >[/color]


    Comment

    • Boni

      #3
      Re: Cancel event action

      Without diving into details, it is NOT a solution for my case. I need to
      remove the message or delete keyboard buffer. (Because a part of application
      is unmanaged and it still handles the key press)
      "W.G. Ryan eMVP" <WilliamRyan@No Spam.gmail.com> schrieb im Newsbeitrag
      news:e%23%23GuS jaFHA.1660@tk2m sftngp13.phx.gb l...[color=blue]
      > Use e.Handled = true w/ KeyPress - that should do it for you.
      >
      > --
      > W.G. Ryan MVP (Windows Embedded)
      >
      > TiBA Solutions
      > www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
      > "Boni" <oilia@nospam > wrote in message
      > news:OCX4OTSaFH A.2980@TK2MSFTN GP10.phx.gbl...[color=green]
      >> Dear all,
      >> I would like to cancel the keydown event after I handled it in my
      >> control.
      >> But the handled=true of the event don't do the job. Is the some stronger
      >> method to clear key buffer and remove enevnts?
      >> Thanks,
      >> Boni
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...