Setting application specific Top Most property

Topics: CAB & Smart Client Software Factory
Aug 30, 2006 at 10:38 AM
originally posted by: gquint

I am trying to set the TopMost property of a form so that a smart part stays on top of my application only and not all desktop windows.

This can be accomplished by setting the child form's owner property to the parent form. My problem is that the child does not know about until it is loaded. How would I go about retrieving the shell body form so I can set this property.

Aug 30, 2006 at 10:42 AM
originally posted by: askew

Send a reference out via the Event Broker.

You can publish a "Where's my Shell?" event from the child form and subscribe to it within the Shell, which can answer via a custom EventArgs with the Shell reference.
Aug 31, 2006 at 8:05 AM
originally posted by: gquint

Worked great