>I am trying to write a program that incorporates Menu Permissions in order to enable/disable certain menu items in my application based upon a permission level designated to the user. I wrote a class that recursively travels the Menu object and converts the structure to a string array that I can store into an SQL Database.
>
>I am coming across a problem with the "-" menu items, which create the "breakers" between menu items. Apparently, when I am traversing the menu object at runtime, the "Name" property is empty. But I gave every single Menu Item a unique name on the Form Designer. Anyone know how I can retrieve the Menu Item's name? I have to have this in order to differentiate between the "-" items.
>
>Thanks in advanced!
You say you are traversing the menu object at runtime, but when at runtime? Are you sure everything has been intialized?
Could you please post your code that you use to traverse the menu object?
Have you thought about using the Tag property of the menu item?
(I am answering your questions with even more questions :)
Semper ubi sub ubi.