Good afternoon,

I am working on learning some of the more advanced capabilities of vb.net and am wanting to use multiple threads to speed up an application that is making a webservice call and then doing some work on the results.


The application currently works fine I am just wanting to speed it up as a large portion of the lag is due to the delay in response from the web-service. I am able to make it run fine if I set up specific arrays to pull a value from that needs to be sent to the webserice.

What I am trying to do is to use a datagridview and have the threads pull the value from the first column and to call the service and return the result to the second column.

I cant seem to figure out how to do the code so they are able to get a value from datagridview. the code i did seems to get a value from the form but its the default values set and do not reflect any type of changes.

For simplicity sake Assume the form has these three features. One button that calls the thread, one datagridview and a multi-line text box. When the button is clicked the worker thread would pull the values and enter them into the textbox.

Any suggestions on what I could be doing wrong or guides on how to do this would be helpful.

My other though would be to sort the datagridview into a few arrays and then pass those to the threads to work. not sure which would be the best to do.


Thanks for the help.

Let me know if you need to see code to understand what I am trying to do.