vb.net 线程处理画面
Private isStop As Boolean = False
Dim th As Thread
Dim aa As Integer = 1
'定义委托
‘启动线程 Private Sub Button3_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button3.Click
‘终止线程 Private Sub Button4_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button4.Click ' isStop = True If th IsNot Nothing AndAlso th.IsAlive Then th.Abort() Me.Invoke(New VoidDelegate(AddressOf UpdateText),"Modified by thread over") End If End Sub (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |