>When a user opens a modal form. all items of the top menu are grayed (which is good). But the buttons of the application toolbar are still accessible. That is, while a modal form is open, user can click on a button of the toolbar. Is there a way to prevent it?
>
>Thank you.
I would consider this a feature, not a bug, because there may be options in the toolbar which you need to access.
You could hide the toolbar when the modal form opens.
Another option might be to do additional checks in the Click() of each CommandButton (or of those CommandButtons which you consider inappropriate for modal forms).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)