Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Editors (TextBox, MaskedEdit, SpinEditor, BrowseEditor, ColorBox) > RadTextBox Custom Class in VB.NET

Not answered RadTextBox Custom Class in VB.NET

Feed from this thread
  • ali avatar

    Posted on Sep 19, 2011 (permalink)

    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.

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Sep 21, 2011 (permalink)

    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,
    Nikolay
    the Telerik team

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

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Editors (TextBox, MaskedEdit, SpinEditor, BrowseEditor, ColorBox) > RadTextBox Custom Class in VB.NET
Related resources for "RadTextBox Custom Class in VB.NET"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]