Adjust the design for Form2 to get an additional parameter, for example:
... private Form1 mainWindow; public Form2(Form1 mainWindow) { this.mainWindow = mainWindow; } ... public void HaveSavedSql() { this.mainWindow.RefreshAll(); }
However, you should consider looking at Interfaces so that you can share the problems. Interfaces are useful for many things!
source share