Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Menus in a class
Message
 
To
11/04/2002 14:34:03
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00643880
Message ID:
00644035
Views:
13
Long time ago (about a year), I saw a demo of a VB.Net application do it.

Using VB6:
-for the menus, have a look at: http://vbaccelerator.com/codelib/cpopmenu/popmenu2.htm

-to run code (I hope you want to run the code compiled into the DLL and not save the code into the database), you can create an instance of your object using
Dim objImport AS Object
Set objImport = CreateObject(strClassName)
And I stongly suggest that you have the same method name into each class in order to call them this way:
objImport.DoIt
>I am trying to create an exe that loads it's menus based on the dll's that are in a specific directory. The program finds the dlls on load and calls a method that would create a new menu or add a menu item to a menu that already exists.
>For example the program finds a dll with the clsSaveFile class in it. The class has a CreateMenu method that the main program calls. I want the CreateMenu method to check for a file menu in the main programs form and if there is not one I want the class to create one and add the Save File item to the menu. If there is already a file menu I want the class just to add the Save File item to the already existing menu.
>
>I also want the code that is executed by clicking on the menu item to be stored in the dlls.
>
>Anybody have any ideas?
>
>Thanks.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform