您好~我想請問一下我想撰寫一種程式就是說當我按command(start)鍵時timer會從40數到0並且顯示在label上<br>另外當時間數到0時則所有的textbox不能輸入任何東西<br>該如何寫這種程式呢!?請指教謝謝!!
Option Explicit Dim I As Integer Private Sub Command1_Click() Timer1.Interval = 1000 End Sub Private Sub Timer1_Timer() I = I + 1 Label1.Caption = 40 - I If I = 40 Then Text1.Enabled = False Text2.Enabled = False Timer1.Interval = 0 End If End Sub