Two Top Most Forms

D

Dan

In my windows applicaiton, I have two forms that the user may set to "Always
on Top" - by setting the TopMost property of the form.

However, if both of these forms are set have their TopMost property set to
true I wish one of these to be on top of the other top most form whatever
happens.

Does anyone have any ideas on how to achieve this

Thanks in advance,

Dan
 
S

Stoitcho Goutsev \(100\) [C# MVP]

Hi Dan,

Set the first form to be owner of the second for by setting the second
form's Owner property.

The only side effect of this is that when you minimize the first form the
second will be minimized as well.

AFAIK there is no easier way.
 

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