I\'ve been trying to figure out how to get my textbox\'s text or other property from within a background worker. Does anybody know how to do this? I cannot pass it as a para
Or if needed in WPF:
private void bgWorker_DoWork(object sender, DoWorkEventArgs e) { string text = null; myTextBox.Dispatcher.Invoke(new Action(delegate() { text = myTextBox.Text; })); }