Recent Posts
PHP | 19 sec ago
PHP | 24 sec ago
Perl | 28 sec ago
Java | 31 sec ago
None | 32 sec ago
None | 32 sec ago
PHP | 35 sec ago
None | 35 sec ago
None | 51 sec ago
Bash | 57 sec ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By ninlar on the 26th of Jan 2009 03:29:39 AM
Download |
Raw |
Embed |
Report
Imports System.Threading
Public Class Form1
Private Delegate Sub NoParams()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim tThread As New Thread(New ParameterizedThreadStart(AddressOf ListenThread))
tThread.Start(Me)
End Sub
Private Sub ListenThread(ByVal frmMain As Object)
Dim dlgMain As Form = Nothing
dlgMain = CType(frmMain, Form)
Thread.Sleep(2000)
dlgMain.Invoke(New NoParams(AddressOf ShowMsgBox))
End Sub
Private Sub ShowMsgBox()
MessageBox.Show("This is a messagebox that was created from a thread")
End Sub
End Class
Submit a correction or amendment below.
Make A New Post