完成上一份工作后如何才能完成工作
问题描述:
您好,我怎样才能在完成的工作后完成第一个程序
Hello, how can I do first procedure
ButtonIncrement_Click(Nothing, Nothing)
after the finished job
Jaguar.roky()
我有一个问题
ButtonIncrement_Click(Nothing, Nothing)
比
Jaguar.roky()
结束了。
谢谢
我尝试过:
was finished.
thank you
What I have tried:
Try
fileprint.PrintThisfile(filePath)
Threading.Thread.Sleep(3000)
SendKeys.Send("{ENTER}")
Refresh()
Threading.Thread.Sleep(100)
Refresh()
If regCis = "238.044-015" Or regCis = "238.044-025" Or regCis = "238.044-035" Or regCis = "238.044-045" Or regCis = "238.044-115" Or regCis = "238.044-125" Or regCis = "238.044-135" Or regCis = "238.044-145" Or regCis = "238.044-355" Or regCis = "238.044-365" Or regCis = "238.044-455" Or regCis = "238.044-465" Or regCis = "238.045-015" Or regCis = "238.045-025" Or regCis = "238.045-035" Or regCis = "238.045-045" Or regCis = "238.045-355" Or regCis = "238.045-365" Then
Jaguar.roky()
Threading.Thread.Sleep(300)
Refresh()
''Pricteni kusu
ButtonIncrement_Click(Nothing, Nothing)
Threading.Thread.Sleep(600)
Refresh()
'Cekani.Show()
Else
''Pricteni kusu
ButtonIncrement_Click(Nothing, Nothing)
'tiskEtiketaBut.BackColor = gray
Refresh()
End If
答
您需要学习如何处理线程 - 特别注意线程何时完成。 />
来自Sacha Barber的这篇文章是一个很好的起点 .NET中线程初学者指南:n的第1部分 [ ^ ] - 看看他的 articles [ ^ ]系列中的其余部分
You need to learn how to handle the threads - specifically noting when a Thread is Done.
This article from Sacha Barber is a good starting point Beginners Guide to Threading in .NET: Part 1 of n[^] - look at his articles[^] for the rest in the series