Hi everyone and good day/evening to you all
I need soem help please
I have a form with a button. Once the button is clicked another form opens with data retrieved from SQL in a datagridview. All of this works fine.
MY problem is that once the first button is clicked I want the program flow to stop there in the first form right after I display the form with form.Show(), then the second form must open and once I close the 2nd form, the program flow must continue where it stopped in first form.
How do I do this? Current the 2nd form opens but the program flow continues in the first form as well.

Regards
Carlo

Use

form.ShowDialog

to open second form.