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!
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook