Wait until user press enter in textbox in another form and return value
Posted
by
ekapek
on Stack Overflow
See other posts from Stack Overflow
or by ekapek
Published on 2011-03-01T15:16:39Z
Indexed on
2011/03/01
15:25 UTC
Read the original article
Hit count: 244
c#
|multithreading
Hello,
I am new to C# and I'm trying to do sth like this:
myList = list of 1000+ string values;
1.StartNewThreads(50); //50 is the numbers of new threads
2.DoSth1(next value from myList);
3.DoSth2();
4. var value = {
ShowNewImageForm(); //show only if not another ImageForm is displayed if another is show - wait
WaitUntilUserPressEnterInTextBox();
ReturnValueFormTextbox();
}
5.DoSth3();
6.StartNewThread();
For now I have:
foreach(String s in myList ) {
DoSth1(s);
DoSth2();
DoSth3();
}
And now I'm looking for ideas to points 1,3,6 Can You suggest me how to resolve this?
- How to start 50 threads
- How to get value from textbox in another form when user press enter
© Stack Overflow or respective owner