0
我通過一個按鈕來調用從窗口形式的Web服務(vb.net 4.5)長時間運行的過程中新的線程贏形成vb.net
我的問題,當我按一下按鈕沒有任何反應進度條和interace似乎凍結/響應
我相信我需要在Web服務調用放入一個線程來完成這個
這裏是我有這麼遠
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ProgressBar1.Style = ProgressBarStyle.Marquee
ProgressBar1.MarqueeAnimationSpeed = 5
Dim webservice As New somewebservice.somewsdl
Dim output(3) As String
'this method can take 1-10 seconds...
Try
output = somewebservice.method()
Catch ex As Exception
txtErrorDesc.Text = ex.Message
End Try
ProgressBar1.MarqueeAnimationSpeed = 0
End Sub
[This may be useful。](http://msdn.microsoft.com/zh-cn/library/aa289496(v = vs.71).aspx) – JMK
該文本是一個鏈接,它只是一個頁面有關VB.Net中的多線程的MSDN。 – JMK