I'm new to C# and I've been reading documentation and old questions, but I can't find figure out how to do the following.
I have two forms, Form1 and Form2.
Form1 contains a datagridview with content from a file. A button on Form1 opens Form2, where the user can enter information in textboxes. The user then clicks a button on Form2 which adds the new content to the file. This all works fine.
Now, there's an exit button on Form2. What I want is that when the user exits Form2, Form1 will immediately call the method to reload the datagridview so it's updated. How do I call this method automatically when Form2 is closed?
Thank you, your help is greatly appreciated!