>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?
You're missing the Init() and Show() in your analysis, so maybe the firing sequence is fouled up somehow. Also, you could try putting a thisform.show() in the gotfocus of the form or control on form, just to see if that would help...
And another idea, does the form appear on top *without* the activex on the SDI? (Just to see if that's causing a problem)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.