Wait until user press enter in textbox in another form and return value
- by ekapek
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