2个回答
展开全部
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Form_Load()
ProgressBar1.Max = 20
ProgressBar1.Min = 0
Timer1.Enabled = False
Timer1.Interval = 1000
End Sub
Private Sub Timer1_Timer()
If ProgressBar1.Value = 20 Then
MsgBox "完"
Timer1.Enabled = False
Else
ProgressBar1.Value = ProgressBar1.Value + 1
End If
End Sub
Timer1.Enabled = True
End Sub
Private Sub Form_Load()
ProgressBar1.Max = 20
ProgressBar1.Min = 0
Timer1.Enabled = False
Timer1.Interval = 1000
End Sub
Private Sub Timer1_Timer()
If ProgressBar1.Value = 20 Then
MsgBox "完"
Timer1.Enabled = False
Else
ProgressBar1.Value = ProgressBar1.Value + 1
End If
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
private sub form_load()
timer1.enabled=false
timer1.interval=100
progressbar1.max=200
progressbar1.min=0
end sub
private sub command1_click()
timer1.enabled=true
progressbar1.value=0
end sub
private sub timer1_timer()
with progressbar1
.value=.value+1
if .value=200 then
timer1.enabled=false
msgbox "走完"
end if
end with
end sub
timer1.enabled=false
timer1.interval=100
progressbar1.max=200
progressbar1.min=0
end sub
private sub command1_click()
timer1.enabled=true
progressbar1.value=0
end sub
private sub timer1_timer()
with progressbar1
.value=.value+1
if .value=200 then
timer1.enabled=false
msgbox "走完"
end if
end with
end sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询