An error dialog pops up after clicking Add button in ToolStripItem Collection Editor
See original GitHub issue- .NET Core Version: 5.0.100-preview.5.20226.6
- Have you experienced this same bug with .NET Framework?: No
Problem description:
An error dialog is occurring after clicking the Add button.

Expected behavior: The items can be added successfully without any error/warning popping up.
More info:
- This issue also can reproduce with BindingNavigator/ContextMenuStrip/MenuStrip/StatusStrip/ToolStrip controls
- This issue also can reproduce with .Net Core 3.1.
Minimal repro:
- Create a winforms core project.
- Add a propertyGrid control to form.
- Add a MenuStrip control to form.
- Add this code in form initializeComponent part: propertyGrid1.SelectedObject = menuStrip1;
- Find the Items property of MenuStrip, click the Browser button to show the ToolStripItem Collection Editor.
- Click the Add button.
Or
- Run the attached project. System.ToolStripItem.zip
- Run it, and do the above step 5-6.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
c# - ToolStripMenuItem click event not working
I'm trying to open a file dialog window by pressing the "Open" button ( ToolStripMenuItem ) but it's not working for some reason...
Read more >ToolStripButton Class (System.Windows.Forms)
Initializes a new instance of the ToolStripButton class with the specified name that displays the specified text and image and that raises the...
Read more >NET Core Win form toolStripMenuItem does not work VS ...
As far as we know, no matter on .Net Framework or .Net Core, they all don't include the toolbar buttons for events in...
Read more >Matlab toolstrip – part 9 (popup figures)
Today I will show how we can incorporate popup forms composed of Matlab figures into our Matlab toolstrip. These are similar in concept...
Read more >MenuStrip In C#
We can add items to a MenuStrip at design-time from Properties Window by clicking on Items Collection as you can see in Figure...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@lonitra feel free to add a PR for this fix 😁
This submission has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days.
It will be closed if no further activity occurs within 7 days of this comment.