private void WizardForm_FormClosing(object sender, FormClosingEventArgs e) { if (CurrentPage != null) { CurrentPage.Cancel(); CurrentPage = null; } }