Geek74, I'm confused as to how your question relates to this thread.
Anyway, you've not given much details of your project, therefore I will assume that your main form class is called Form1, and that your form which you want to close is called Form2.
First thing to do is create the event FormClosing in your Form2:
Code:
protected override void OnFormClosing(FormClosingEventArgs e)
{
base.OnFormClosing(e);
}
Next have a method in Form1 which, when called, will perform the updates you require:
Code:
public void UpdateData()
{
// do update stuff here
}
Lastly, go back to your FormClosing event in Form2, and call the UpdateData method from there:
Code:
protected override void OnFormClosing(FormClosingEventArgs e)
{
((Form1)this.Parent).UpdateData();
base.OnFormClosing(e);
}