textbox setfocus and back color change

Can anyone tell me how to set the setfocus to texbox and change the backcolor with my C# window application?

tommychiuAsked:
Who is Participating?
 
p_davisConnect With a Mentor Commented:
ok, if you select a text box then you have an enter event for each one or they can all share the same and in that you can set the backcolor as i have shown above.
0
 
p_davisCommented:
               TextBox t = new TextBox();
            t.Focus();
                t.BackColor = Color.Blue;
0
 
tommychiuAuthor Commented:
actually I have couple of textbox, If I select the first textbox then the back color change to blue otherwise change it back to normal.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.