I want to close all the forms when a user clicks on a button (without knowing the names of the forms)

Any ideas?

Cheers