Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Object Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Menus
Titre:
Menu Object Question
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01216226
Message ID:
01216226
Vues:
70
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform