你放在timertick事件了吗?开启了吗?
http://www.foxtable.com/help/topics/1301.htm
放在timertick的话,可以简化一下的。
Static OpenQQ As winForm.Button
If OpenQQ Is Nothing Then
OpenQQ = Forms("窗口13").Controls("OpenQQ")
End If
Dim txt As String
If QQClient.Ready
If QQClient.UnreadCount > 0 Then
txt = "(" & QQClient.UnreadCount & "条)"
End If
End If
If OpenQQ.Text <> txt Then
OpenQQ.Text = txt
End If
If OpenQQ.Text > "" Then
If OpenQQ.ForeColor = Color.Red Then
OpenQQ.ForeColor = Color.Transparent
Else
OpenQQ.ForeColor = Color.Red
End If
End If