H
H
Hirty2016-05-25 13:06:58
WPF
Hirty, 2016-05-25 13:06:58

Pass form data to stream?

There is a stream, everything works fine. But you need to pass data from the form to the stream

string url = Dispatcher.BeginInvoke(new ThreadStart(delegate { textBox3.Text; }));

There was such an idea, but it did not help, apparently it works in the opposite direction from the stream to the form.
Prompt how to transfer the data, in a stream from the form.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-05-25
@petermzg

If when starting the thread, then like this:

var placeBetThread = new Thread(PlaceBetsWork);
placeBetThread.Start(textBox3.Text); 
private void PlaceBetsWork(object obj)
{
   var text = (string)obj;
   ...
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question