我想添加加載動畫,而形式是loading..i試圖BackgroundWorker的,但我不能讓它work..plz幫我..如何添加加載動畫,而繁忙的
Private Sub BackgroundWorker1_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
CharTz.Show()
End Sub
Private Sub BackgroundWorker1_ProgressChanged(sender As Object, e As System.ComponentModel.ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChanged
loadingscreen.show()
End Sub
Private Sub BackgroundWorker1_RunWorkerCompleted(sender As Object, e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorker1.RunWorkerCompleted
loadingscreen.close()
End Sub
你在做裝載其餘的異步,並行或後臺線程? – TimG
抱歉,但我只是個noob..what正在試圖做的是,我想展現chartz形式,但我需要大約3-4secs到show..now我希望它表現出一定的加載動畫,it..till該chartz形式彈出窗口.. – user3211476
你能解釋更多關於「*它實際上不工作*」嗎?任何異常(如*無效的交叉線程異常*,或其他類型的異常)或您的'加載屏幕(不管它是什麼)不會出現?如果後者需要提供更多關於'加載屏幕'的信息,那就是'show()'和'close()'方法。 – har07