Code:
Public Class HTML5 Public DOMTree As New Windows.Forms.TreeView Public Sub AddDocumentNameNode(Byval Name As String) DOMTree.Nodes.Add(Name) End Sub Public Class Tags Public Class a Private WorkerThread as System.Threading.Thread Private _Path As String = "" Public Property Path As String Get Return _Path End Get Set(Byval value as string) _Path = value End Set Public Sub LookForHref() WorkerThread = New System.Threading.Thread(AddressOf DoLookForHrefWork) WorkerThread.Start() End Sub Private Sub DoLookForHrefWork() Dim HTML5 As New HTML5 HTML5.AddDocumentNameNode(DocName) End Sub End Class End Class End Class
If you can explain to me how to properly use the BeginInvoke or Invoke methods or explain how to fix this to get it to work. Thanks. :)