Okay, next question.
To update the form, do I have to pass the value of every control every time?
Can I just say update this one control with this value?
Okay, thanks guys. Following your advice I've got it to work.
Realising that I didn't need to use a class made it a lot simpler.
Public Class Form1
Public Class Time_object
Public Hours As Integer
Public Minutes As Integer
Public Seconds As Integer
End Class...
Elroy,
Thank you for your reply. However, you've given me rather more than I wanted. And that has made it a little hard to follow.
I'm not actually trying to write a clock application. I'm just trying to learn how to use a backgroundworker. The clock is just a simple and entirely arbitrary...
I can't get my backgroundworker to update my form.
This is just a test, trying to learn HOW to do it before I use it for anything serious.
I can run a procedure from the main thread, it works and updates the form, but locks up all the other controls while running.
I can run an identical...
I will repeat my question. (see post#3)
I've got the webresponse like this:
Dim response As WebResponse = request.GetResponse()
Dim incoming_stream As Stream = response.GetResponseStream
Dim sr As New StreamReader(incoming_stream)
' get the incoming stream into an XML document...
No, I am not kidding. In the first post I loaded XML from a file. I can do that.
Now I want to load XML from an XmlDocument. I don't know how to do that.
Yes, see the code in my first post.
That's exactly what I want to do, but I can't work out the correct instruction to do that.
Please instruct me how to do that.
Thank you, I did in fact search the reference before asking. I still don't know hoe to do it. I can't get it to work.
I tried this, for example
Dim request As WebRequest = WebRequest.Create(req)
Application.DoEvents()
Dim response As WebResponse = request.GetResponse()...
Thank you, what's the syntax?
I've got the webresponse like this:
Dim response As WebResponse = request.GetResponse()
Dim incoming_stream As Stream = response.GetResponseStream
Dim sr As New StreamReader(incoming_stream)
' get the incoming stream into an XML document...
I have a datasgridview. I can populate it from an XML file like this:
Public ds As New DataSet
...
Dim xmlFile As XmlReader
xmlFile = XmlReader.Create("products.xml", New XmlReaderSettings())
ds.ReadXml(xmlFile)
dg_products.DataSource = ds.Tables(0)
this is linked to the...
Maybe not, but I'd like to try it anyway and see if it makes a difference.
How can it not make a difference? If I have several thousand responses in the queue waiting to be processed, I presume they are stored in memory, or paged onto the hard disk. Wouldn't reducing the number make the memory...
I don't object to 50 tasks queued. I object to having several thousand queued, which is what happens at the moment. I want to ensure that no more than 50 are waiting.
Several reasons for this. One is that in case of my program or my computer crashing, it leave the records in an inconsistent...
Perhaps I didn't explain the problem clearly enough.
I don't WANT to have too many threads queued up. I might have a few thousand records to process. I have to loop through all the records, make a webrequest for each record.
I want to make about 50 webrequests, then pause the loop, and wait...
Hi there. In my application I have a loop that makes calls to a website to download data. I'm using a DownloadDataAsynch call with a handler.
I'm making many such calls in a loop. What I'd like to do is, if I have more than a certain number of replies pending, I should pause the loop and let...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.