Blink a TextBox in VB?
dormdaz
Posted messages
361
Status
Member
-
quidnunc -
quidnunc -
Hello, how to make a TextBox blink or change its color in Visual Basic?
Thank you in advance
Dorm.
Configuration: Windows XP / Internet Explorer 7.0
Thank you in advance
Dorm.
Configuration: Windows XP / Internet Explorer 7.0
3 answers
-
It can be done in several ways essentially by a code on a time base more or less respected according to the parameters
-
Use a timer, and the textbox's color property (I don't have the exact name).
-
bjr voilà la syntaxe d'un label à l'aide d'un timer, veuillez tester slvp:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If Animation.ForeColor = Color.Black Then
Animation.ForeColor = Color.Red
Dim f As New Font("Berlin Sans FB", 50, FontStyle.Bold)
Animation.Font = f
Me.BackColor = Color.Aqua
Label1.Width = Label1.Width + 10
Else
Animation.ForeColor = Color.Black
Dim f As New Font("Berlin Sans FB", 50)
Animation.Font = f
Me.BackColor = Color.Beige
Label1.Width = Label1.Width + 10
End If
End Sub