C
Carol
I'm fairly new at this and trying to create a dynamic menu.
I use the function getMANames to put all the submenu item names into
an array. I am confident this sub is working properly.
When I look in debug mode the object insertJobMenu is reporting the
correct number of items. If I look at one of those items it has the
correct name. However when I run the code I don't get a drop-down
menu. I can see "InsertJobs" on the menu bar, however when I hover
over it nothing happens. Can anyone tell me what I'm doing wrong?
Dim insertJobMenu As New MenuItem("InsertJobs")
Dim MANames As String() = getMANames()
For i = 0 To UBound(MANames)
Dim insertMenuItem As New MenuItem(MANames(i))
insertJobMenu.MenuItems.Add(insertMenuItem)
Next
Dim myMenu As New MainMenu(New MenuItem() {insertJobMenu})
Menu = myMenu
Thanks,
Carol
I use the function getMANames to put all the submenu item names into
an array. I am confident this sub is working properly.
When I look in debug mode the object insertJobMenu is reporting the
correct number of items. If I look at one of those items it has the
correct name. However when I run the code I don't get a drop-down
menu. I can see "InsertJobs" on the menu bar, however when I hover
over it nothing happens. Can anyone tell me what I'm doing wrong?
Dim insertJobMenu As New MenuItem("InsertJobs")
Dim MANames As String() = getMANames()
For i = 0 To UBound(MANames)
Dim insertMenuItem As New MenuItem(MANames(i))
insertJobMenu.MenuItems.Add(insertMenuItem)
Next
Dim myMenu As New MainMenu(New MenuItem() {insertJobMenu})
Menu = myMenu
Thanks,
Carol