MDI Form on top

hog

Senior Contributor
Joined
Mar 17, 2003
Messages
984
Location
UK
My application uses a MDI Parent form to display 8 other forms. I have a boolean flag in place so that only one instance of each form can ever be open at a time. If form A is opened first then B, C and D are opened then currently the user needs to select form A from the Window menu to bring it back on top of C and D. Clicking it's button results in no action as the flag says it is already open.

Is there a way to link the Windows menu event to the forms open button so that if like above A, B, C and D are open and A is behind B, C and D then by clicking the button A will be brought to the top?

I tried TopMost but that dd not work?

Thx
 
Back
Top