Hi all,
I'm curious about this error. I have a personal program that gave me several of these errors. I was able to fix them all. That version of my program was v3 and it used a tabControl with two pages and a backgroundworker thread. I had a textbox, prograssbar and a button in the second page of tabcontrol (there were only two pages). The backgroundworker _dowork was called when the button was clicked. The textbox and prograssbar showed info as the backgroundworker _dowork was being executed. The progressChanged function was actually writing to the textbox.text and progressbar.value. That's when I got the cross thread errors. But as I said I fixed them.
Now I made v4 of my program but this time the textbox, prograssbar and button are on the same (main) form. There is no tabControl. I was expecting the same cross thread errors to show up but they didn't!. I'm still accessing the UI from the progressChanged function and yet there is no cross thread errors. Are the pages of a tabControl consider different threads? why am I not getting the errors now?
Thanks