Detect when owned form is brought to front?



Sorry about the last post -- I hit Enter by accident...

I have the following code ('this' is a non-MDI Form):

Form form1 = new Form();
form1.Owner = this;

Form form2 = new Form();
form2.Owner = this;

The behavior is that form1 and form2 are sort of child forms of 'this'
form. When the above code is executed, form2 is in the front, and I'd
like to check when the user clicks on form1 to bring it to the front.
I guess I was assuming that this was the 'GotFocus' event but this does
not work. Is there a 'ZOrderChange' event, or what is it?


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