ahsan ashfaq

ahsan ashfaq

  • NA
  • 14
  • 0

textbox color change

Nov 10 2009 1:38 AM
i m using vs 2005 framework 2.0
i have simple c# application
in my form i have 5 textboxes
what i want to do is to change the color of the textbox when it is clicked
textBox1.BackColor = Color.LightGoldenrodYellow;
i have done it through by  writing the above code in click event of each textbox
now i want to write only one code which detects which textbox is clicked and appropriately changes the color of one  clicked

regards
ahsan ashfaq

Answers (3)