MenuItem generates item not exist upon running

i have created a MenuBar Control
The i created a menuitem and a menuitem under that called “ImportButton”

under the window’s Even Handlers i have
EnableMenuItems
then i enable ImportButton.Enabled = True

at compile time i get a error “This Item does not exist” for “ImportButton” Menuitem

please advise

In the inspector pane of your window, make sure the window is set to use the new menubar control you have created.

And if that doesnt lead to an answer, check whether you added an index to the menuitem

Roger

Yes that worked Thank you !

Jeff
I have not added any indexes to any of the MenuItems,
It seems to be working now after Roger’s Change was made

Thank you all.