/// <summary> /// remove the menu, resize the window, remove border, and maximize /// </summary> public void RemoveBorder_ToSpecificScreen(IntPtr hWnd, Screen screen, Favorites.Favorite favDetails = null, Boolean overrideTimeout = false) { if (favDetails != null && favDetails.DelayBorderless == true && overrideTimeout == false) { //Wait 10 seconds before removing the border. Task task = new Task(() => RemoveBorder_ToSpecificScreen(hWnd, screen, favDetails, true)); task.Wait(TimeSpan.FromSeconds(10)); } var pd = _processDetails.FromHandle(hWnd); Manipulation.MakeWindowBorderless(pd, window, hWnd, screen.Bounds, favDetails ?? _favorites.FromProcessDetails(pd)); }
/// <summary> /// remove the menu, resize the window, remove border, and maximize /// </summary> public void RemoveBorder_ToSpecificScreen(IntPtr hWnd, Screen screen, Favorites.Favorite favDetails = null) { var pd = _processDetails.FromHandle(hWnd); Manipulation.MakeWindowBorderless(pd, window, hWnd, screen.Bounds, favDetails ?? _favorites.FromProcessDetails(pd)); }