I need to use form controls such as comboBox1.text and comboBox2.Text inside the readstream function, and deliver an error message (translated from German):
Access control comboBox1 / comboBox2 comes from a different stream, and not from the stream in which it is created !!!
I need to pass these controls to the readstream function, but I don't know exactly how.
Code
private void button1_Click(object sender, EventArgs e) { BackgroundWorker worker = new BackgroundWorker; worker.WorkerReportsProgress = true; worker.ProgressChanged += ProgressChanged; worker.DoWork += ReadStream;
source share