I have a WinForms program that loops thru a list of images. For each image, a form pops up with buttons for several choices what to do with the image.
Originally that form was a separate dialog, which worked fine. But now I had the idea to move all that functionality (including said buttons) to the main form which runs the loop. Having done that, I find that I have no clue how to pause my loop until any of the buttons is clicked.... Not sure if this is even possible short of creating a busy loop ? I have a feeling I've painted myself in a corner here ...
Originally that form was a separate dialog, which worked fine. But now I had the idea to move all that functionality (including said buttons) to the main form which runs the loop. Having done that, I find that I have no clue how to pause my loop until any of the buttons is clicked.... Not sure if this is even possible short of creating a busy loop ? I have a feeling I've painted myself in a corner here ...