diff --git a/NAPS2.Lib.WinForms/EtoForms/WinForms/WinFormsHacks.cs b/NAPS2.Lib.WinForms/EtoForms/WinForms/WinFormsHacks.cs index 43a5c7b4dd..a8a5827e9c 100644 --- a/NAPS2.Lib.WinForms/EtoForms/WinForms/WinFormsHacks.cs +++ b/NAPS2.Lib.WinForms/EtoForms/WinForms/WinFormsHacks.cs @@ -17,7 +17,7 @@ public static class WinFormsHacks static WinFormsHacks() { - ImageSizeField = typeof(ImageList).GetField("imageSize", BindingFlags.Instance | BindingFlags.NonPublic); + ImageSizeField = typeof(ImageList).GetField("_imageSize", BindingFlags.Instance | BindingFlags.NonPublic); PerformRecreateHandleMethod = typeof(ImageList).GetMethod("PerformRecreateHandle", BindingFlags.Instance | BindingFlags.NonPublic); if (ImageSizeField == null || PerformRecreateHandleMethod == null) @@ -32,7 +32,7 @@ public static void SetImageSize(ImageList imageList, Size size) if (ImageSizeField != null && PerformRecreateHandleMethod != null) { ImageSizeField.SetValue(imageList, size); - PerformRecreateHandleMethod.Invoke(imageList, new object[] { "ImageSize" }); + PerformRecreateHandleMethod.Invoke(imageList, []); } else {