Normally, if I want to make my textbox or combobox change the backcolor when the user gotfocus on the controls i will using the code like this.

VB Code:
  1. Private Sub Text1_GotFocus()
  2.  
  3.    Text1.BackColor = vbYellow
  4. End  Sub
  5.  
  6. Private Sub Text1_LostFocus()
  7.  
  8.    Text1.BackColor = vbWhite
  9. End Sub

But I need to create the code for every control

Got any method allowed me to do only one time for every control ?

Thanks