?
Solved

textbox setfocus and back color change

Posted on 2008-10-09
3
Medium Priority
?
686 Views
Last Modified: 2012-05-05
Can anyone tell me how to set the setfocus to texbox and change the backcolor with my C# window application?

0
Comment
Question by:tommychiu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 22681554
               TextBox t = new TextBox();
            t.Focus();
                t.BackColor = Color.Blue;
0
 

Author Comment

by:tommychiu
ID: 22681986
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
 
LVL 22

Accepted Solution

by:
p_davis earned 2000 total points
ID: 22682010
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question