If you want to do it with the BackColor then you need to change the colour for every TextBox when it receives focus and when it loses focus.VB Code:
Private Sub TextBox_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Enter, TextBox2.Enter DirectCast(sender, TextBox).BackColor = Color.Blue End Sub Private Sub TextBox_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave, TextBox2.Leave DirectCast(sender, TextBox).BackColor = SystemColors.Window End Sub




Reply With Quote