Quest: Bringing To Front All Top-Level Forms My App Shows...

B

bj7lewis

I have a C# app in VS.NET 2002...

It shows 2 sibling forms with their parent as the desktop... Now I have
Winamp(just an example my app doesn't use Winamp) setup to have Winamp's
main controls position on the lower left corner of desktop and my playlist
dock to the right side of desktop. When Winamp is covered by any other app
and I click any Winamp's window both of Winamp's windows pop to the front
but(now back to my app) only the form of my app clicked on pops to the front
and the other wait to be click to then come to front as if it was a form in
another process...

Where should I look into like

protected override void WndProc(ref Message m)
{
//...
}

or elsewhere to get my form to bring the other sibling to front when click
on like Winamp does...

Any help...
 
S

Stoitcho Goutsev \(100\)

Hi,

If one of the forms is owns of the other form then clicking on either of the
forms will bring up both of them to the top as well as minimizing/maximizing
the owner will do the same to the owned form.

To make one of the forms to be owner of another set the second form's Owner
property to be reference to the first form.
 
B

bj7lewis

If one of the forms is owns of the other form then clicking on either of
the forms will bring up both of them to the top as well as
minimizing/maximizing the owner will do the same to the owned form.
Thanks that is just the thing... I forgot all about Owner I just know I
can't use Parent to setup a child form of a another form usless a MDI app is
setup which does apply for my app...

Thanks again...
 

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