Posted 14 July 2020, 11:31 pm EST
Hello,
I try to make the text property of C1Button to blink. It works well with a native winform button with the following code but I cannot get it to work with C1Button. W:
Private Sub btnBlinck(ByRef xbTrueOrFalse As Boolean)
If xbTrueOrFalse = True Then
If btnSave.ForeColor.Equals(System.Drawing.Color.Blue) Then Exit Sub
btnSave.ForeColor = System.Drawing.Color.Blue
tmrSave.Interval = 300
tmrSave.Enabled = True
Else
If btnSave.ForeColor.equals(System.Drawing.SystemColors.ControlText) Then Exit Sub
btnSave.ForeColor = System.Drawing.SystemColors.ControlText
tmrSave.Enabled = False
End If
System.Windows.Forms.Application.DoEvents()
End Sub
Private Sub tmrSave_Tick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles tmrSave.Tick
btnSave.ForeColor = IIf(btnSave.ForeColor.Equals(System.Drawing.Color.Blue), System.Drawing.SystemColors.ControlText, System.Drawing.Color.Blue)
End Sub