I guess you missed the step of initializing your object. Or
there is a problem with the signature of your handler function.
This code is working absolutely fine for me.
Code:
InputBox cs = new InputBox();
cs.Closed += new System.EventHandler(this.Form1_Closed);
Make sure that the handler of the Closed event has this signature
void FormName_Closed(object sender, System.EventArgs e);
Best way to be sure about the signature of event handlers
is to add an event handler for events using wizard (if it is
available), change the name and associations of the handler
and use its body for your purpose.
Do write back if there is any thing else you wanna ask.
Ankur Verma
.Net and C++ Specialist
Wiley Tech Support