Search results for query: *

  1. R

    updating form from backgroundworker

    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?
  2. R

    updating form from backgroundworker

    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...
  3. R

    updating form from backgroundworker

    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...
  4. R

    updating form from backgroundworker

    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...
  5. R

    Question add a row to datagridview by XML

    OK, tell me the syntax for loading an XDocument into ds. Please.
  6. R

    Question add a row to datagridview by XML

    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...
  7. R

    Question add a row to datagridview by XML

    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.
  8. R

    Question add a row to datagridview by XML

    I do not know how to load xml into a dataset. That's why I asked. Please tell me.
  9. R

    Question add a row to datagridview by XML

    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.
  10. R

    Question add a row to datagridview by XML

    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()...
  11. R

    Question add a row to datagridview by XML

    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...
  12. R

    Question add a row to datagridview by XML

    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...
  13. R

    Question pause a thread, let other threads run

    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...
  14. R

    Question pause a thread, let other threads run

    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...
  15. R

    Question pause a thread, let other threads run

    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...
  16. R

    Question pause a thread, let other threads run

    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...
Back
Top