protected override void OnShowFinished() { base.OnShowFinished(); // Focus on text panel if(notetextpanel.Visible) notetext.Focus(); }