Right then - all the previous code is now working perfectly - thanks for all the help guys. However - I'm really having a hard time with delegates. I sort-of understand it, but the way I have my code set up at present, all the calculations and database inserts are done on the thread that reads the serial port rather than the main form, where I want to use the values to plot as points on a graph. Is that the best way to do it or doesn't it matter?
I simply need to get the final values - maxIndex and maxInteger - into a text box and I can work it from there, but no matter what I try it won't work. Been trying for 3 days, spent a lot of time reading tutorials and looking at code examples, still none the wiser really. Don't mean to be thick but it seems I'm not alone in this. Frustration is getting the better of me and I've held off posting here but can't any longer. Can anyone assist? See previous post 2 days ago for code snippets.
I simply need to get the final values - maxIndex and maxInteger - into a text box and I can work it from there, but no matter what I try it won't work. Been trying for 3 days, spent a lot of time reading tutorials and looking at code examples, still none the wiser really. Don't mean to be thick but it seems I'm not alone in this. Frustration is getting the better of me and I've held off posting here but can't any longer. Can anyone assist? See previous post 2 days ago for code snippets.