Results 1 to 8 of 8

Thread: [2005][resolved] New Thread interact with Form

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    47

    Resolved [2005][resolved] New Thread interact with Form

    Is there anyway for a new thread to interact with my original form. For example
    Code:
    Sub createhoneypots()
            Dim honeylisten As New System.Threading.Thread(AddressOf Module1.honeylisten)
    
            honeypot = New System.Net.Sockets.TcpListener(System.Net.IPAddress.Any, 2999)
            honeylisten.Start()
        End Sub
    
        Sub honeylisten()
            MsgBox("")
            Try
                honeypot.Start()
                MsgBox("")
                Form1.txthresults.Text = Form1.txthresults.Text & "Honeypot Succesfully Created on port: 2999" & vbNewLine
                honeypot.AcceptTcpClient()
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub
    That code does not write the message to the txtbox but it does show all the message boxes so i know it is getting to that code.
    Last edited by qazwsx; Dec 1st, 2007 at 10:01 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width