By the way, you can also use the Key member property of the menu item to accomplish the same thing. This way you won’t even have to cast it’s value back to a string, since the Key is already a string type. You still will need assign the Key property the same value as the Name property though.
Imported from legacy forums. Posted by paulplatter (had 3548 views)