List out all menus in vb6 application
-
I have a vb6 application that contain various drop down menus. Some user has not permitted to access some menus. For the purpose Logged in as administrator and list all menus in the application and select a user and check or uncheck whether this user access that menu. But how can I list all menus in the application without manually enter menu name ? Because when we add new menu in the application, I manually add these menu name in list. And If menu no is 100 or 150 then it is difficult to enter the menu name or control them. So I want the code for list all menus in the application automatically. Please help me.
-
I have a vb6 application that contain various drop down menus. Some user has not permitted to access some menus. For the purpose Logged in as administrator and list all menus in the application and select a user and check or uncheck whether this user access that menu. But how can I list all menus in the application without manually enter menu name ? Because when we add new menu in the application, I manually add these menu name in list. And If menu no is 100 or 150 then it is difficult to enter the menu name or control them. So I want the code for list all menus in the application automatically. Please help me.
I'm a little confused to where you refer to drop down controls and drop down item. but the item once can be done pretty easily by code
dropdownbox.items.add("object, a string as name for example")
with a loop and some if/else statements you should be able to filter what you add by the users permissions.
-
I have a vb6 application that contain various drop down menus. Some user has not permitted to access some menus. For the purpose Logged in as administrator and list all menus in the application and select a user and check or uncheck whether this user access that menu. But how can I list all menus in the application without manually enter menu name ? Because when we add new menu in the application, I manually add these menu name in list. And If menu no is 100 or 150 then it is difficult to enter the menu name or control them. So I want the code for list all menus in the application automatically. Please help me.
Enumerate all objects of type "Menu" in the form and add it to a list from where an administrator can decide to grant permissions. For instance:
for each myControl in myForm.Controls
if typeOf myControl is Menu thenand so on...
-
Enumerate all objects of type "Menu" in the form and add it to a list from where an administrator can decide to grant permissions. For instance:
for each myControl in myForm.Controls
if typeOf myControl is Menu thenand so on...