From d33955c46a42f19beac6c992f19d2b9cf7a361e6 Mon Sep 17 00:00:00 2001 From: v-leafshi Date: Tue, 17 Mar 2026 16:07:26 +0800 Subject: [PATCH] Fixes issue 14400: Pasting controls via CommandSet.OnMenuPaste stopped working when hosting the WinForms designer --- .../src/System/Windows/Forms/Design/CommandSet.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/CommandSet.cs b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/CommandSet.cs index 32534a9be54..bbc53b37f12 100644 --- a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/CommandSet.cs +++ b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/CommandSet.cs @@ -1916,6 +1916,7 @@ protected void OnMenuPaste(object? sender, EventArgs e) if (tree is IOleDragClient oleDragClient) { designer = oleDragClient; + dragClient = true; break; }