[英]Visual Basic msgbox spam error
In my program I have a progress bar that when it completes it displays a message, the problem is that when the message box is displayed it spams the msgboxes. 在我的程序中,我有一个进度条,当它完成时会显示一条消息,问题是当显示消息框时它会阻止msgbox。 here is my code 这是我的代码
If ProgressBar1.Value = ProgressBar1.Maximum Then
MsgBox("Done")
Timer1.Stop()
ProgressBar1.Value = 0
End If
If I could get an answer to make the messages stop spamming that would be great! 如果我能得到一个答案,让邮件停止垃圾邮件,这将是伟大的!
I think msgbox
will stop the ui thread but not the timer thread, put the timer1.stop()
before the msgbox
我认为msgbox
将停止ui线程而不是定时器线程,将timer1.stop()
放在msgbox
之前
i just did a quick test and it is in fact true. 我刚做了一个快速测试,事实上它是真的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.