Windows Form Topmost...

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!
 
D

Dave Sexton

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).
 
M

Mandragon03

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
 
D

Dave Sexton

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?
 
M

Mandragon03

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top