question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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. Error

Expected behavior: The items can be added successfully without any error/warning popping up.

More info:

  1. This issue also can reproduce with BindingNavigator/ContextMenuStrip/MenuStrip/StatusStrip/ToolStrip controls
  2. This issue also can reproduce with .Net Core 3.1.

Minimal repro:

  1. Create a winforms core project.
  2. Add a propertyGrid control to form.
  3. Add a MenuStrip control to form.
  4. Add this code in form initializeComponent part: propertyGrid1.SelectedObject = menuStrip1;
  5. Find the Items property of MenuStrip, click the Browser button to show the ToolStripItem Collection Editor.
  6. Click the Add button.

Or

  1. Run the attached project. System.ToolStripItem.zip
  2. Run it, and do the above step 5-6.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
merriemcgawcommented, May 28, 2020

@lonitra feel free to add a PR for this fix 😁

0reactions
msftbot[bot]commented, Mar 4, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found