Windows Form Topmost...

  • Thread starter Thread starter Mandragon03
  • Start date Start date
M

Mandragon03

I have an MDI form that has 4 child forms that are locked on top of any
other child form in the MDI. I want to unlock these 4 forms so they are
not always on top of all the other forms in the MDI. When I set

ChildForm1.TopMost = false;

It does nothing. Is there another another property I should be looking
at?

Thanks!
 
Hi,

How did you "lock" child forms?

Normally, you would just call the Activate method on the child Form that you
want displayed (or ActivateMdiChild on the MDI parent).
 
Thats a good question. I did not "lock" them. I am supporting someone
else's program...

I am trying to determine what is forcing these 4 windows to be on top
no matter what I do. I thought if I set the TopMost value to false(it
was previously set to true) it would take care of the problem but it
didn't. So I am trying to find out if there is another property of the
Forms that can be adjusted. Is there another way to force the forms to
be on top?

Thanks,

Mandragon
 
Hi,

Not that I'm aware of. Have you tried calling the Activate method on a
visible, MDI child form that isn't one of the four top-most to see if it
shows up?
 
I just found out that he is setting the parent with a function in a
..dll. When I set the parent with

form.MdiParent = this;

It works fine. Thanks to anyone who looked at this.

Mandragon
 
Back
Top