private static void MoveWindowBringWindowToTop(IntPtr handle, Rectangle rectangle) { WinApi.MoveWindow(handle, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, true); WinApi.BringWindowToTop(handle); }