Hi all,
my applications _SCREEN contains a form (frmpvdesktop) with an IExplorer browser control (ohtml). The forms AlwaysOnBottom property is .T. The applications main menu launches some SDI forms. The problem: the first form that is launched after the app is up is
behind the _SCREEN. I have tracked the events and found that following happens after the menu item to call the form is clicked:
screen.LostFocus()
screen.Deactivate()
newform.pgf1.page1.Activate()
newform.Activate()
newform.GotFocus()
newform.pgf1.page1.lsteigenschaften.GotFocus()
newform.pgf1.page1.lsteigenschaften.LostFocus()
newform.LostFocus()
newform.Deactivate()
frmpvdesktop.Activate()
frmpvdesktop.GotFocus()
frmpvdesktop.ohtml.GotFocus()
This happens only when the first time a form is called. When the form is closed and relaunched or another SDI form is launched, they are always on top. What activates the background form?
Any ideas?
I've acquired quite a taste for a well-made mistake... [Fiona Apple]