protected override void SetVisibleCore(bool newVisible) { this.SetVisibleCoreBase(newVisible); if (!newVisible || !this.IsHandleCreated) { return; } TopFormBase.SetWindowPos(this.Handle, this.InsertAfterWindow, 0, 0, 0, 0, 83U); }
protected virtual void UpdateZOrder(IntPtr after) { if (!this.Visible) { return; } if (after == IntPtr.Zero) { after = this.InsertAfterWindow; } uint num = 16U; Rectangle realBounds = this.RealBounds; uint uFlags = num | 3U; TopFormBase.SetWindowPos(this.Handle, after, realBounds.X, realBounds.Y, realBounds.Width, realBounds.Height, uFlags); }