Form opens in background !?!

  • Thread starter Thread starter David
  • Start date Start date
D

David

I am opening a form via a command button on another form.
But the second form opens 'behind' the first and cannot be
reached. My workaround is to close the first form before
opening the second, but that means I cannot return to the
first form after closing the second - which is not what I
want. Why is my second window not opening in front of the
first?
 
David said:
I am opening a form via a command button on another form.
But the second form opens 'behind' the first and cannot be
reached. My workaround is to close the first form before
opening the second, but that means I cannot return to the
first form after closing the second - which is not what I
want. Why is my second window not opening in front of the
first?

What is your exact code?

Is the first form modal or popup?
 
On the first form modal and popup are both set to YES.
On the second form they are both set to NO.
This is what they defaulted to. The first form was a pre-
exisitng form and the second was created with a wizard.
Is this the problem? What should these properties be set
to?
 
David said:
On the first form modal and popup are both set to YES.
On the second form they are both set to NO.
This is what they defaulted to. The first form was a pre-
exisitng form and the second was created with a wizard.
Is this the problem? What should these properties be set
to?

When a form is modal it means no other form can have focus until you close
or hide that form with the exception of opening another form from the modal
form that is also modal.

When a form has Popup = True then it is always "in front" with the
exception of other forms also set to Popup = True.

You can see how these two settings are producing your problem. Either
change the first form to not be modal and popup or change the second form
so it is.
 
Back
Top