Dim a As String
Private Sub CommandButton1_Click()
On Error Resume Next
If TextBox1 = "" Then
TextBox1.BackColor = RGB(255, 0, 0)
a = Timer
End If
Do
Do Until a + 0.5 <= Timer
DoEvents
Loop
If TextBox1.Visible = True Then TextBox1.Visible = False Else TextBox1.Visible = True
a = Timer
Loop
End Sub
Private Sub TextBox1_AfterUpdate()
TextBox1.BackColor = RGB(255, 255, 255)
End Sub
Private Sub TextBox1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
On Error Resume Next
a = 0 <= Timer
TextBox1.BackColor = RGB(255, 255, 255)
End Sub