>My main program calls up a menu. Upon selecting an option from the menu, a form comes up. But the user still has a choice to go back to select other menu selections. HOw can I keep this from happening? I guess I need to find a way to disable all menu choices while a form is active? Can anyone tell me how to do this or if this is the best route to take...and safest?
>
>TIA
>
Jeff,
The easiest way to accomplish what you are asking is to make all forms Modal, set the WindowType property to Modal. This will disable the menus when one of the forms is alive.
The better design is to make all forms have private data sessions and allow the user to opne as many forms as they like. However, doing this means your code has to make allowance for other forms being open and needs to keep track of these forms somehow.