vb2008的timer怎么统计触发次数?
我用timer做个网页自动刷新器,想指定刷新的次数,但不知道怎么控制timer触发次数。有什么办法实现?VB.NET补充:窗体页面设计:已解决:PubliciAsInte...
我用timer做个网页自动刷新器,想指定刷新的次数,但不知道怎么控制timer触发次数。有什么办法实现?
VB.NET
补充:
窗体页面设计:
已解决:
Public i As Integer = 0
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim a As String, b() As Byte
a = Nothing
b = Nothing
WebBrowser1.Navigate(strUrl, a, b, "REFERER:" & strUrlFrom)
i = i + 1
Me.Label7.Text = "本次已刷" & i & "次"
End Sub 展开
VB.NET
补充:
窗体页面设计:
已解决:
Public i As Integer = 0
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim a As String, b() As Byte
a = Nothing
b = Nothing
WebBrowser1.Navigate(strUrl, a, b, "REFERER:" & strUrlFrom)
i = i + 1
Me.Label7.Text = "本次已刷" & i & "次"
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询