I have an application that depending on the state of the form, I add and remove commands. It is an EggTimer, so when the timer expires, I remove commands like stop and pause.
The problem is that if the user has the menu open when I do this, an exception is generated.
I'm not sure how to handle this as I find no way to know when the menu is open and I think the exception occurs when I remove the commands on the open menu.
Has anyone run into this problem, and do you have any suggestions, like a way to force the menu closed or something?