Form in a loop

  • Thread starter Thread starter Danny M
  • Start date Start date
D

Danny M

What i want to do is this:

I have a loop of records. For some records the user need to give some
feedback
Because of this i want to open a modal form in the loop
When the user clicks a button on the form a result need to send back
and the form will close.
The loop should continue.

My question is is this possible?
How can i stop the loop?
Let the loop continue when a result is given back?
Does someone has an example?
 
Just iterate through all the records (eg. for each-loop)and show the
form inside the loop. It's simple as that.

foreach(Record r in records)
{
result = form.ShowDialog();
//do something with the result here
}

a bit pseudoish but hopefully you get the point.
 
Back
Top