I want to create in my application a logic showed below
foreach(item in collection)
{
//do something...wait for a button click (pause until button is clicked)
//after button is clicked do another thing
}
After hours of googling only one I know is that it can be handle with threads. I'm not familiar with this. If someone can explain issue it would be nice. I will appreciate any help
For your request let me explain more details
I want to compare the content in one of colums of DataTable object. Let say there are 10 rows in this column and in each row there is a differen word. I want to compare each word with the word put by user in TextBox control. The word of row 1 is displayed and user has to write it in text box. After put it in TextBox he must confirm it by clicking a button, and this will repeat 9 times.
foreach(DataRow dr in DataTab.Rows)<br/>
{
string wordFromDB = dr["words"].ToString()
//wait for a button click (pause until button is clicked)
string wordFormTextBox = TextBox1.Text
if( wordFormDB==wordFormTextBox)
{
Label1.Text="ok";
}
else
{
Label1.Text="nok";
}
}
something like this. Of course if there is a different approach, I am interested in it.