E
Eric Sabine
OK, I have an app that when it loads, it calls a sub which loads a dataset
from a web service. I spin the call on another thread so the user doesn't
get an unresponsive screen. The problem ensues when the web service can't
be contacted (which is OK). I throw up a messagebox to the user and an
opendialog control, but since this is happening on another thread, the user
can still do activity in the main form.
I suppose this breaks a tenent of why you're doing threading in the first
place, but can someone offer a suggestion anyway?
Code goes like this
' Spin the dataset filling to a new thread
Dim ts As New ThreadStart(AddressOf FillDataSetFromWebService)
Dim t As New Thread(ts)
t.Name = "FillDataSetFromWebService"
t.Start()
thanks,
Eric
from a web service. I spin the call on another thread so the user doesn't
get an unresponsive screen. The problem ensues when the web service can't
be contacted (which is OK). I throw up a messagebox to the user and an
opendialog control, but since this is happening on another thread, the user
can still do activity in the main form.
I suppose this breaks a tenent of why you're doing threading in the first
place, but can someone offer a suggestion anyway?
Code goes like this
' Spin the dataset filling to a new thread
Dim ts As New ThreadStart(AddressOf FillDataSetFromWebService)
Dim t As New Thread(ts)
t.Name = "FillDataSetFromWebService"
t.Start()
thanks,
Eric