I have several buttons on a ribbon like switchboard form that will open forms below. The forms open one on top of another just below the switchboard form.
When a user selects a form to open, it is in focus and the corresponding button on the switchboard form changes color to the form that is active (in focus). I'm trying to simulate what any Windows application menu does.
But when the user closes that form, and a previously opened form is now being displayed, the form is not active (in focus) so the button on the switchboard doesn't change color. Until the user clicks anywhere in the form.
How can I close the top form and re-activate the previous form (if there was one).
Thanks
When a user selects a form to open, it is in focus and the corresponding button on the switchboard form changes color to the form that is active (in focus). I'm trying to simulate what any Windows application menu does.
But when the user closes that form, and a previously opened form is now being displayed, the form is not active (in focus) so the button on the switchboard doesn't change color. Until the user clicks anywhere in the form.
How can I close the top form and re-activate the previous form (if there was one).
Thanks