Custom Textbox problem

benmkor

New member
Joined
Oct 4, 2011
Messages
1
Programming Experience
1-3
Dear all,
I got a stupid problem regarding a custom textbox. I created a bounded numeric box as a class component intended to be reusable and draggable in the toolbox as follows:

1. Imports System.ComponentModel
2. Public Class BddBox
3. Inherits System.Windows.Forms.TextBox
4. 'Property, etc
5. End Class

However, when I dragged this numeric box into a form, Form 1 and named it as BddBox1, then coded the followings under Class Form1

1. Public Class Form1
2. Private Sub BddBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
BddBox1.TextChanged
3. MsgBox("Text changed.")
4. End Sub
5. End Class

But when I change the text in BddBox1, no message poped out. Could anyone offer a help? Thanks a lot.
 
Back
Top