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

Click here to load this message in the networking platform