I want to enable/disable menus/sub menus based on a table.
My table structure has:
Group(group where the user belong)
Menu(Menu to enabled for this specific group).
I also have a SqlDataReader which return all the menus as a string.
e.g Group=1 and Menu="MnuFile"
How can I pass this string (MnuFile) to enable me doing me.["MnuFile"].enable=true? where ["MnuFile"] is a string retrieved from a datareader? I’m using vb.net2005 (winform) and sqlserver 2005.
Use
EDIT : above for main menu strip
for menu item