cambiar el fondo de color d un textbox
Publicado por fernando (29 intervenciones) el 12/11/2003 23:59:23
He conseguido cambiar el fondo de color amarillo de un texbox al introducir un numero o letra, pero no consigo hacer la operacion contraria, es decir, si borro todo el contenido del textbox y cambio de sitio no se pone amarillo el texbox. El codigo que tengo es el sigueinte:
Private Sub TextBox4_Change()
If TextBox4 = 0 Then
TextBox4.BackColor = &HFFFF&
End If
If TextBox4 <> 0 Then
TextBox4.BackColor = &H80000005
End If
End Sub
Private Sub TextBox4_Change()
If TextBox4 = 0 Then
TextBox4.BackColor = &HFFFF&
End If
If TextBox4 <> 0 Then
TextBox4.BackColor = &H80000005
End If
End Sub
Valora esta pregunta


0