Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Object Question
Message
General information
Forum:
ASP.NET
Category:
Menus
Title:
Menu Object Question
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01216226
Message ID:
01216226
Views:
72
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
Next
Reply
Map
View

Click here to load this message in the networking platform