How to remove unwanted Winforms Toolstrip item?
Posted: Wed Mar 29, 2023 12:22 pm
In a Winforms form, I have added a context menu where one option has 2 submenu options, added by clicking on the arrow in the designed.
Now, for some reason, it has added this already so the newly generated click method in the properties of the menu item is called: Self:SomeOptionToolStripMenuItem1 , with a 1.
When I remove all code with that '1' in it and go back to the designer to change the name to a name without the '1', the menu option there is empty.
I am able to continue to add a click event pointing to the method without a '1' to the code with the '1' , but I was wondering if anyone knows how to correct such an issue in a Winforms?
Dick
Now, for some reason, it has added this already so the newly generated click method in the properties of the menu item is called: Self:SomeOptionToolStripMenuItem1 , with a 1.
When I remove all code with that '1' in it and go back to the designer to change the name to a name without the '1', the menu option there is empty.
I am able to continue to add a click event pointing to the method without a '1' to the code with the '1' , but I was wondering if anyone knows how to correct such an issue in a Winforms?
Dick