问题描述
我在表单中有两个列表框和四个按钮.分别名为start1,stop1,start2,stop2的按钮.当我按下start1按钮时,从1开始的数字将显示在listbox1中,并且过程正在进行当我单击下一个start2按钮时,将从1开始的数字将显示在listbox2中,依此类推.当我单击stop1按钮时,应该停止在listbox1中显示数字的过程.与stop2相同当我单击stop2按钮时,应该关闭在listbox2中显示数字的过程.您能帮助我解决查询问题吗?
I have two listboxses and four buttons in my form.The button named as start1,stop1,start2,stop2 respectively.When i am pressing start1 button the numbers starting from 1 are to be displayed in listbox1 and the process is going on continously.When i click the next start2 button the numbers starting from 1 are to be displayed in listbox2 and so on.As soon as i click on the stop1 button the process of displaying of numbers in listbox1 should be stop.And the same for stop2 button when i click stop2 button the process of displaying numbers in listbox2 should be close.Can you help me to solve my querry.
这篇关于我如何在C#中使用多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!