/// <summary> /// this will set position of the rectangle when location has been changed /// </summary> private void Layout() { // SafeNativeMethods.SetWindowPos(this._leftForm.Handle, NativeMethods.HWND_TOPMOST, this._location.Left - this._width, this._location.Top, this._width, this._location.Height, 0x10); WinAPIs.SetWindowPos(this._form.Handle, Constants.NativeMethods.HWND_TOPMOST, this._location.X, this._location.Y, this._location.Width, this._location.Height, 0x10); }