If I understand your question, I think you actually want to trap deactivation. Button handler inside your main form:
private void button1_Click(object sender, EventArgs e)
{
Form childForm = new Form();
childForm.Deactivate += delegate
{
childForm.Close();
};
childForm.Show();
}