protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); if (isFormClose) { this.Close(); } }