编写程序vb,拜托了
用计时器按秒计时,在窗体上画一个计时器空间和一个标签,程序运行后,在标签内现实经过的秒数,并响铃...
用计时器按秒计时,在窗体上画一个计时器空间和一个标签,程序运行后,在标签内现实经过的秒数,并响铃
展开
2个回答
展开全部
'假设为Timer1和Label1,每10秒一次声音提示:
dim nTimer_Start as single
private sub Form_Load()
nTimer_Start=timer
Timer1.interval=1000
end sub
private sub Timer1_Timer()
dim nElapse as single
nElapse=int(Timer-nTimer_Start)
Label1.caption=nElapse
if nElapse mod 10=0 then beep
end sub
dim nTimer_Start as single
private sub Form_Load()
nTimer_Start=timer
Timer1.interval=1000
end sub
private sub Timer1_Timer()
dim nElapse as single
nElapse=int(Timer-nTimer_Start)
Label1.caption=nElapse
if nElapse mod 10=0 then beep
end sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询