Mano,
Thanks for the reply. In parallel, I was starting to put together a sample app to test this. I came to the same conclusion that you did. In the simple app, it works just fine. So I had to go back to our real app and puzzle it out some more. I think I found out what the issue was. Our base class Form is in 1 assembly. I added the Extras menu there. But the final instance of this is a subclassed Form implemented in another assembly. When I brought that Form up in the designer, I saw that the menu I added was not visible. I had to manually add it. This added a new entry in the barMainMenu.UpdatedBarItemPositions array. To be honest, I''m not sure why I should have to do this in the subclassed Form when I added it as a protected item in the base class. But after I did this, the original code worked as you say.
Can you explain the need to do this in the subclassed Form?
Anyway, thank you for the help.
Pete
>Hi Pete,
>
>Thanks for using Essential Tools.
>
>I have tested this issue here. I am afraid, the code that you have used works fine. It correctly toggles the parentBarItem visiblity. I have attached the tested sample. In the sample, you can toggle the visibility using a checkbox.
>
>Please refer to it and let me know if I have missed anything.
>
>Regards,
>Mano
>
>
Test_menus_forum.zip
>