>I have a set of five forms that will automatically pop up the correct menu bar according to a property that they contain. There are 3 different menus that can possibly be displayed depending upon which form is "on top". The menus are activated through the .Activate() event in my form template class. The problem is this; any modal dialog forms (which do not have this menu property, nor any code to run to display a menu) always swap menus. For reasons that I cannot seem to pinpoint, when these modal dialogs enter their .Destroy() event, I can see the wrong menu getting displayed. No code is run to do this....it just happens. Modal forms have their own form template, have nothing is in their .Activate() event and are not in anyway related to the form template used for modeless forms. I've managed to work around it, but the menus still "flash" as they are swapping so I know it is still doing it. Anyone else ever see this?
>
>Steve
OK, maybe I'm oversimplifying the problem, but what is the SET SYSMENU setting. If it's ON or AUTO when going into those modals it might have something to do with it.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05