hey guys, a simple question but i dont know to do it.
When I exit my app I want to call my save method to check if the user wants to save any changes.
How to i call the save click event method? This is what I came up with:
if (isDirty == true)
{
saveToolStripMenuItem();
}
this.Close();
But that doesnt work