摘要: private void button4_Click(object sender, EventArgs e) { int marktime = 0; MyMethod my = method; IAsyncResult asyncResult = my.BeginInvoke(MethodCompleted, my); while (!asyncResult.IsCompleted && marktime < 4) { marktime +=... 阅读全文
posted @ 2013-06-08 17:26 纵一苇之所如- 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Public Sub DeownloadFile(ByVal networkfile As String, ByVal locationFileName As String, ByVal PaperDownloadLog As String, ByVal strReferer As String) For index = 1 To 3 '如获取不了重试3次 Dim task As NewTaskDelegate = AddressOf TrytoDownloadFile Dim asyncResult As IAsyncResult = task.BeginInvoke(network 阅读全文
posted @ 2013-06-08 17:00 纵一苇之所如- 阅读(299) 评论(0) 推荐(0) 编辑