public override void OnHide() { base.OnHide(); overviewbutton_Click(this, EventArgs.Empty); animatetoptimer.Stop(); }