完成上一份工作后如何才能完成工作 [英] How can I do job after finished previous job

查看:86
本文介绍了完成上一份工作后如何才能完成工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我怎样才能在完成的工作后完成第一个程序

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


这篇关于完成上一份工作后如何才能完成工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆