I can't find my custom TextBox control in Visual Studio

Posted by Gold on Stack Overflow See other posts from Stack Overflow or by Gold
Published on 2010-02-13T15:39:19Z Indexed on 2010/03/16 10:16 UTC
Read the original article Hit count: 314

Filed under:
|
|

Hi,

I'm creating a custom WinForms TextBox control, like this:

class MyTest : TextBox
{
    protected override void OnEnter(EventArgs e)
    {
        this.BackColor = Color.Yellow;
    }
    protected override void OnLeave(EventArgs e)
    {
        this.BackColor = Color.White;
    }
}

When I build the project, I cannot see the control. Can anyone explain why not?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET