On FrmMain I have a panel LeftPanelMainMenu and a set of buttons to launch various forms. Buttons are for example BtnSampleLogin, BtnRecentSamples ... etc. I have set one BackgroundImage for not used and another lighter one for MouseHover and MouseLeave. The lighter background image is also invoked on MouseClick, which launches the form associated to the button.
What I am trying to do is to have the lighter backgrouindimage stay put on the button when the associated form launches.... and even if I MouseLeave have the navigation button stay lighter background, UNTIL the form that was launched closes. I was expecting to somehow send an event from the form as it closed to notify/change the background image of the original calling button back on FrmMain to reset back to the normal image. I am unable to address the FrmMain buttons from my other closing form. How is this supposed to be done? Since I can't readily find anything on search I must be trying to do something non-standard.
Thanks for helpful comments.
What I am trying to do is to have the lighter backgrouindimage stay put on the button when the associated form launches.... and even if I MouseLeave have the navigation button stay lighter background, UNTIL the form that was launched closes. I was expecting to somehow send an event from the form as it closed to notify/change the background image of the original calling button back on FrmMain to reset back to the normal image. I am unable to address the FrmMain buttons from my other closing form. How is this supposed to be done? Since I can't readily find anything on search I must be trying to do something non-standard.
Thanks for helpful comments.