private void OnSelectedPageChanged(object sender, EventArgs e) { IPageControl control = wizardControl1.SelectedPage.Tag as IPageControl; if(control!=null) control.NowVisible(); }