首页 > 代码库 > vb.net多线程
vb.net多线程
Public Class Form1 Dim myThread As Threading.Thread Public Delegate Sub SetTextStringDelegate(ByVal tb As TextBox, ByVal str As String) Public Sub SetTextStringInvoke(ByVal tb As TextBox, ByVal str As String) tb.Text = str End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click myThread = New Threading.Thread(AddressOf SetTextString) myThread.Start() End Sub Private Sub SetTextString() TextBox1.Invoke(New SetTextStringDelegate(AddressOf SetTextStringInvoke), New Object() {TextBox1, "多线程访问界面"}) End SubEnd Class
vb.net多线程
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。