Jang,
The thing you really need is a forms manager in your framework. Using a forms manager entials never running any form directly rqather alwys calling amehtod of the froms manager to launch the form. You also use a form class for all forms that has code in the activate and deactivate events that calls the forms manager notifying it of receivning or losing the focus. The forms manager can then manage the toolbar by calling a t=method of the toolbar and passingf a refernce to the form that is receiving focus. teh toolbar's method can investigate the fomr that is recieving focus and set itself properly for that form.
Without using a forms manager this process becomes a nightmare of trying to figure out how to know what form is losing focus and what form is getting focus etc.