I supposed you mean:
In a designed with the Menu Editor screen, I created a Menu in the MenuBar that I populated dynamically by code (elsewhere, probably in the App.Open Event)
Note this doesnt REQUIRE using a subclass at all … thats one way to handle this
Have you defined menu handlers for any of the sub items ?
The fun part is that
you MUST assign the NAME - not just the text
you CAN define a menu handler even for items that dont already exist in the menu bar (you just have to put the names into the editor field when you create one)
once you do this the items will automatically enable & disable on windows where those menu handlers are defined
STEP 1 : alter your code - NOTE THE ADDITION OF THE SETTING OF THE NAME PROPERTY !
Dim SelfMenu As New MenuItem("Self Service")
Main_MenuBar.Insert(2, SelfMenu)
SelfMenu.Enabled = True
Dim fMenu As MenuItem
fMenu = New MenuItem("selfchgpswd")
fMenu.Name = "selfchgpswd" // <<<<<<<< THIS IS VITAL
fMenu.Text = "Change Password"
SelfMenu.Append(fMenu)
STEP 2 : ADD A NEW MENU HANDLER USING THE NAME
so you should now have a menu handler for “selfchgpswd”