[.NET] timer即時運算
小弟試了整晚了= =
就是搞不出來
問題如下
我想在Label裡面 顯示倒數的秒數
每秒更新
然後
每6秒依序擷取 陣列裡的內容
每個內容 間格1秒...
依序顯示.....
Private Sub txtshow_keypress(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtshow.KeyPress
If e.KeyChar = Chr(13) Then
Timerpra.Enabled = True
i = -1
i = i + 1
Timerpra_timer()
End If
End Sub
Private Sub Timerpra_timer()
a = a - 1
second.Text = a
For i = 0 To 2
txtshow.Text = praArray(i)
Next i
End Sub
完全搞不出來 我是新手阿 囧
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.217.234.241
※ 編輯: Elearnet 來自: 61.217.234.241 (05/10 01:53)
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章