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
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)
{