MenuItem.Name in VB.NET

Could it be that the MenuItem class doesn't have a Name property? The Name property of Buttons, TextBoxes, etc. is inherited from the Control class. The MenuItem does not inherit the Control class. The Name that you see in the Properties window at design time is NOT a property of the object. As the description at the bottom says, it is the name used in code to identify the object, i.e. the member variable name.
 
Yes, its clear now.

I evaded it by making my own MenuItem class, which has one more property to store data (name) instead of Name property.

Thanks for your explanation.

Regards #JFK
 
Back
Top