1
Reply

Custom TextBox with uncoded event handler capability

Ask a question
Ahmet

Ahmet

17y
2k
1

Hi everbody,

I just made a shift from JAVA to .NET and I wonder how to make a custom (extended) text box, which will simply be used in a form. I will be using several of these extended textboxes and each should have the same event handler capabilities without explicitly coding event handler methods for each of them.

Actually I just want to change the backcolor of the text boxes when i click on them, and re-change the color to its default when i focus on some other component.

Is there a way to implement this by just extending System.Windows.Forms.TextBox class and adding some capabilities to this extended class.

Thanks in advance.

Ahmet


Answers (1)