winforms icon indicating copy to clipboard operation
winforms copied to clipboard

The ToolStripMenuItem cannot be deleted successfully using Delete key in the DemoConsole application

Open MelonWang1 opened this issue 1 year ago • 3 comments

.NET version

feature/10.0 branch of Winforms repo

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No, this issue also repro in .NET 9.0 main branch of WinForms repo branch of WinForms repo.

Issue description

More info:

  1. This issue cannot repro when using Delete key to delete other control, and then delete ToolStripMenuItem.
  2. This issue cannot repro when using Delete in Edit menu.

Actual result in [DemoConsole] test app: The ToolStripMenuItem cannot be deleted successfully using Delete key.

https://github.com/user-attachments/assets/efe0612c-ad63-43e9-898c-001ddc9a2c2e

Expected result: The ToolStripMenuItem can be deleted successfully using Delete key.

Steps to reproduce

Test sample: DemoConsole bases on feature/10.0 branch in Winforms repo.

MelonWang1 avatar Aug 01 '24 08:08 MelonWang1

@MelonWang1 is this a regression, and when was the functionality to delete added to the demo app?

merriemcgaw avatar Aug 07 '24 21:08 merriemcgaw

@merriemcgaw It's not a regression issue, for ContextMenuStrip to add item is support in .NET 9.0. In release/7.0 and release/8.0 branch, can using Delete key to delete controls from the DemoConsole application.

MelonWang1 avatar Aug 08 '24 03:08 MelonWang1

This should be a keyboard issue, because the menu item is successfully deleted by clicking the delete item of the context menu

BeforeChanges

LeafShi1 avatar Sep 04 '24 01:09 LeafShi1

@merriemcgaw Since this issue doesn't affect out-of-designer and the delete operation works normally after a page or control refresh, can we close the issue and reopen it if a customer raises this issue?

LeafShi1 avatar Aug 20 '25 00:08 LeafShi1

Yep, good call. Thanks @LeafShi1

merriemcgaw avatar Aug 20 '25 20:08 merriemcgaw