Como Cambiar el color de mi textbox al hacer focus en el?
Publicado por Yuseth (4 intervenciones) el 30/10/2012 21:14:56
Tengo un programa y quiero saber como hacer para hacer cambiarle el color de fondo del texbox algún codigo? estoy usando algo que aprendi en vb6 es lo siguiente
Private Sub TxtName_GotFocus()
TxtName.BackColor = &HFFFF00
End Sub
Private Sub TxtName_LostFocus()
TxtName.BackColor = &HFFFFFF
End Sub
e intente esto en VB 2010
Private Sub TxtName_GotFocus()
TxtName.BackColor = Color.Azure
End Sub
Private Sub TxtName_LostFocus()
TxtName.BackColor = Color.Red
End Sub
pero sigo sin resultados...
agluien me puede ayudar?
Private Sub TxtName_GotFocus()
TxtName.BackColor = &HFFFF00
End Sub
Private Sub TxtName_LostFocus()
TxtName.BackColor = &HFFFFFF
End Sub
e intente esto en VB 2010
Private Sub TxtName_GotFocus()
TxtName.BackColor = Color.Azure
End Sub
Private Sub TxtName_LostFocus()
TxtName.BackColor = Color.Red
End Sub
pero sigo sin resultados...
agluien me puede ayudar?
Valora esta pregunta


0