Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you need to specify whether you were trying to delete the menu or menu item during <b>run time</b>, or during <b>design time</b>.</p> <p>You said, an exception, indicating an index value was missing, thrown at run time. I think it might be depending on how you deleted the menu item. You didn't mention how you deleted the menu item. Normally, when you choose a menu item from a menu at design time, and press the Delete key, it disappeared. And, the program still works fine. </p> <p>And, another possibility, is that your form window designer and the background designer code is not properly synced. You might know that, every .NET form objects, have their background designer code, which serves as a schema for everything on the form. When you add a button onto the form, the Visual Studio add a line of code in the designer code file (normally if your form name is <b>form1</b>, the designer code file is <b>form1.designer.vb</b> or <b>cs</b> or whatever). When you change the background colour of the button, designer code file add a line of code to set the button's background colour. </p> <p>So, you see, in your case, when you delete the menu item, your designer code file probably didn't successfully remove the code relating to that menu item. So, it throws an exception at run time. <br>Maybe, it's because of your Visual Studio installation. </p> <p>So, my suggestion is, you should try debugging the project, line by line, by running the project with F6 or F11 (sorry, I don't remember the exact key, but you can find it in the Debug menu).</p> <p>I hope I made a good sense for your problem!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload