CAMBIAR FONDO DE UN BOTON AL HACER CLIC
Publicado por Marya! (2 intervenciones) el 03/05/2011 05:29:08
Ola! Reciien estoy comenzando a programar en VB, y estoy haciendo una aplicación que quiero que un boton al hacer click cambie de color y que ejecute otras lineas mas pero nose como hacerlo.
He intentado hacer esto, pero no sale:
Private Sub btn_1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_Colgar.Click
If btn_1.BackColor = Color.HotPink Then
btn_1.BackColor=Color.Gree
lbl_Pantalla.Enabled = True
lbl_Pantalla.Text = ""
End If
End Sub
Si alguien sabe ayundemeee!
He intentado hacer esto, pero no sale:
Private Sub btn_1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_Colgar.Click
If btn_1.BackColor = Color.HotPink Then
btn_1.BackColor=Color.Gree
lbl_Pantalla.Enabled = True
lbl_Pantalla.Text = ""
End If
End Sub
Si alguien sabe ayundemeee!
Valora esta pregunta


0