private void OnParentWindowDeactivated(object sender, EventArgs e) { if (IsTopmost == false) { SetTopmostState(IsTopmost); } }