From 1d05cde93bea58da9efd1ee88787024c34cd8d2f Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Wed, 12 Aug 2026 11:21:47 +0800 Subject: [PATCH 1/2] WI01110087 - Error creating window handle. --- .../System/Windows/Forms/Controls/PictureBox/PictureBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Windows.Forms/System/Windows/Forms/Controls/PictureBox/PictureBox.cs b/src/System.Windows.Forms/System/Windows/Forms/Controls/PictureBox/PictureBox.cs index 976865fd5a8..f9dc5d41b99 100644 --- a/src/System.Windows.Forms/System/Windows/Forms/Controls/PictureBox/PictureBox.cs +++ b/src/System.Windows.Forms/System/Windows/Forms/Controls/PictureBox/PictureBox.cs @@ -1050,7 +1050,7 @@ private void OnFrameChanged(object? o, EventArgs e) } // Handle should be created, before calling the BeginInvoke. - if (InvokeRequired && IsHandleCreated) + if (IsHandleCreated && InvokeRequired) { lock (_internalSyncObject) { From d6c9eeebfcf5d65c4e4b04573ea0ab5f08662eba Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Thu, 13 Aug 2026 10:15:09 +0800 Subject: [PATCH 2/2] update the description and global.json --- global.json | 4 ++-- .../System.Windows.Forms.Package.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/global.json b/global.json index d32fc68b66f..e57e228993f 100644 --- a/global.json +++ b/global.json @@ -2,7 +2,7 @@ "sdk": { "version": "10.0.103", "allowPrerelease": true, - "rollForward": "latestFeature", + "rollForward": "latestPatch", "paths": [ ".dotnet", "$host$" @@ -30,4 +30,4 @@ "native-tools": { "cmake": "latest" } -} +} \ No newline at end of file diff --git a/src/System.Windows.Forms.Legacy/System.Windows.Forms.Package/System.Windows.Forms.Package.csproj b/src/System.Windows.Forms.Legacy/System.Windows.Forms.Package/System.Windows.Forms.Package.csproj index 2fe2af28897..ebb8e076a03 100644 --- a/src/System.Windows.Forms.Legacy/System.Windows.Forms.Package/System.Windows.Forms.Package.csproj +++ b/src/System.Windows.Forms.Legacy/System.Windows.Forms.Package/System.Windows.Forms.Package.csproj @@ -10,7 +10,7 @@ 0.1.0 $(WtgPackageVersionPrefix)-dev WiseTech Global forked version of System.Windows.Forms that includes controls that were deprecated in .NET Core 3.1 and .NET 5, like DataGrid, Menu, ToolBar and StatusBar. - Fix the ToolStrip issue, PR link: https://github.com/WiseTechGlobal/winforms/pull/39 + Fix the PictureBox issue, PR link: https://github.com/WiseTechGlobal/winforms/pull/40 WiseTech Global © WiseTech Global Limited. All rights reserved. README.md