프로그래밍언어/VB.NET

VB.NET UI스레드(BeginInvoke )

부산딸랑이 2014. 7. 9. 03:03

Delegate Sub InvokeDelegate()

Private Sub Invoke_Click(sender As Object, e As EventArgs)
myTextBox.BeginInvoke(New InvokeDelegate(AddressOf InvokeMethod))
End Sub 'Invoke_Click

Public Sub InvokeMethod()
myTextBox.Text = "Executed the given delegate"
End Sub 'InvokeMethod

'http://msdn.microsoft.com/ko-kr/library/0b1bf3y3(v=vs.110).aspx