How to keep a second form on top of the main form

How to keep a second form on top of the main form

am 24.11.2007 00:26:37 von Simon

Dear reader,



I have two forms, FormMain and FormX.

FormX will be open as a popup in front of FormMain.

By selection a field in FormMain, FormX drops to the back of FormMain.

But now I prefer that FormX will be stay on top of FormMain and FormX has to
be scrolled to the record as in FormMain.



My first question is how to keep FormX on top of FormMain.



My second question is how to synchronise both forms.



Thanks for any help.

Kind regards,

Simon van Beek

Re: How to keep a second form on top of the main form

am 24.11.2007 02:46:28 von DM McGowan II

First answer: set FormX's Pop-Up property to Yes.

Second answer: in the Form_Current event of FormMain, write code to set
FormX to display the corresponding record in FormMain. Or, if FormX does
that automatically when opened, then simply have your code close and reopen
FormX.