我正在尝试一些进度条,但它没有正确显示弹出窗口。当我使用 msgbox 时,它会出现 100 次,当我通过替换 msgbox 来使用 form2 时,即使我关闭它,它也会继续显示。
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(1)
If ProgressBar1.Value = ProgressBar1.Maximum Then
MsgBox("Done")
End If
End Sub
End Class