Eugen Fintina
Programmer
I have two forms (Form_01 and Form_02). Both have properties sets like:
AlwaysOnTop = .T.
WindowType = 1 – Modal
In a custom method of Form_01 I have the following code:
When I call this method, Form_01 is over Form_02.
But, if I add a code line, like:
Form_02 is over Form_01 as I wish.
But, Form_01 is also visible.
If I close Form_02 and reopen it using the same method all works as I wish (Form_01 is not visible).
All the bests,
Eugen
AlwaysOnTop = .T.
WindowType = 1 – Modal
In a custom method of Form_01 I have the following code:
Code:
Local lnParam
lnParam = 2
With Thisform
.Visible = .F.
Do Form Form_02 With lnParam
.Visible = .T.
Endwith
When I call this method, Form_01 is over Form_02.
But, if I add a code line, like:
Code:
Local lnParam
lnParam = 2
With Thisform
.Visible = .F.
[COLOR=#EF2929][b]Wait Timeout 0.001[/b][/color]
Do Form Form_02 With lnParam
.Visible = .T.
Endwith
Form_02 is over Form_01 as I wish.
But, Form_01 is also visible.
If I close Form_02 and reopen it using the same method all works as I wish (Form_01 is not visible).
All the bests,
Eugen