How can I wait for the thread "thread" to execute and finish before calling GETEPP?
Do while thread.stopped = false
doesn't seem to work.
Public Sub New(ByVal url As String, ByVal DTable As DataTable, ByVal EventCode As String, ByVal Agent As String, ByVal EventInstance As String, ByVal tabC As TabControl, ByVal thegoahead As String)
m_url = url
Dim thread As New Threading.Thread(AddressOf StartGetDocument)
thread.Name = "StartGetDocument"
GetEPP(m_document, DTable, tabC, EventCode, EventInstance, Agent, thegoahead)