This is a migrated thread and some comments may be shown as answers.

RadTextBox Custom Class in VB.NET

1 Answer 94 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 19 Sep 2011, 01:35 PM
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.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 21 Sep 2011, 11:08 AM
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 >>

Tags
TextBox
Asked by
ali
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or