RadTextBox Custom Class in VB.NET

2 posts, 0 answers
  1. ali
    ali avatar
    3 posts
    Member since:
    Sep 2011

    Posted 19 Sep 2011 Link to this post

    Hey guys

    I created a new class in VB.NET (2010) which inherits from Telerik.WinControls.UI.RadTextBox. Inside it i have several events, e.g KeyDown:
    Private Sub PosNegDoubleTextBox_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
       ' some code....
    End Sub
    however when i drag and drop my new control onto my main form, the event does not fire up on key down. That is my first problem. My second problem is that the new control out of no where gets a grey border which cannot be edited and i also cannot apply any themes..

    Any Help would be greatly appreciated, thank you.
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 21 Sep 2011 Link to this post

    Hi Ali,

    Thank you for writing.

    I was not able to reproduce the described issue with our latest release Q2 2011 SP1. Please refer to the attached project which demonstrates that the KeyDown event is fired when you press a key at runtime. As to the themes, you should override the ThemeClassName method for the inherited control. For additional information, please refer to this article.

    I hope this helps.

    Best wishes,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top