Supressing Form Popup

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Hi,
I have have a program containing two forms that are
open at the same time. The main form updates the second
when the user enters input by adding a control to it. My
problem is that when the second form (which is in the
backgroud) is updated it suddenly jumps to the top of the
z-order although it does not have focus. Is there any way
to keep it from automatically bringing itself to the front
when a control is added to it by the other form? I would
much rather prefer that it would stay behind the main
window where I put it.

Thanks, Tim
 
What you could possibly do, is move the update code to only fire when the
form is closed or loses focus, rather than when it is updated. This way,
the second form won't be updated until the main form is closed or loses
focus, and hence, won't force itself to the top.

Hope this helps,

Mun
 
Thank you for you help. I wanted to allow the user to see
updates in the second form as they were working in the
main form. I would have put the information that is
contained in the second onto the main form - but the user
needs to be able to resize the information frame to see
all of it (and there would be no room on the main form).
Does anyone know if this same problem would happen if I
put the two forms into an MDI application?

-Tim
 
Back
Top