
January 22nd, 2003, 12:26 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Need help writting code from dynamic menu
Heres what I am trying to do:
I have a form that has a main menu (mm) a submenu (mnu) whos text property is "Test", two text boxes (txtA, txtB) and a button (cmdGo)
I also have a class (cls) whos properties are A, and B (string values)
When the user clicks the button, a new class is created and the properties A and B are set to txtA and txtB respectivly.
Now the hard part...
How can I write code that when the user clicks the button, the new class is created, a new menu item appears under mnu whose text property is the value of the class's A property, and when clicked, it will pop up with a msgbox displaying the classes B propery?
|