RadMaskedEditBox doesn´t react on KeyEvents

4 posts, 0 answers
  1. Dieter
    Dieter avatar
    9 posts
    Member since:
    Feb 2009

    Posted 15 Jun 2010 Link to this post

    Hi,
    I was trying to set a KeyDown event on my RadMaskedEditBox but it doesn´t catch the event. TextChanged Events and others work fine but the Key/down/up and so on doesnt work for me.

    I am using the Telerik Q3 Bundle for WinForms.

    Thanks for any help.
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 17 Jun 2010 Link to this post

    Hello Dieter,

    Thank you for writing.

    RadMaskedEditBox and RadTextBox use the standard Microsoft TextBox control internally. You need to subscribe to its events instead.

    Here is how you can do this:
    this.radMaskedEditBox.MaskedEditBoxElement.TextBoxItem.HostedControl.KeyDown += etc...

    Please write again if you have other questions.
     

    Best wishes,
    Victor
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dieter
    Dieter avatar
    9 posts
    Member since:
    Feb 2009

    Posted 21 Jun 2010 Link to this post

    I got this solution early but it makes my program instable. There are too much errors after it.
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 24 Jun 2010 Link to this post

    Hi Dieter,

    Thank you for writing.

    This is the only way to capture the events of the underlying text box. Please specify what are the errors that you are experiencing. If your code is correct, the usage of these events will not cause anything unusual.

    I am looking forward to your reply.

    Sincerely yours,
    Victor
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top