How can I show MDI child form on the top?

goodmorningsky

Centurion
Joined
Aug 18, 2003
Messages
172
I want to show a MDI child form on the top of other opened child forms.

frm.Show() doesn't make it show on the top..
How can I do this?

Thanks..
 
Thank you for response..
However it doesn't work since the forms are MDI Child.
I want to change Z-Order of MDI child Forms.

If I use ShowDialog.. following exception occurs.
System.InvalidOperationException: Forms that are not top level forms cannot be displayed as a modal dialog. Remove the form from any parent form before calling showDialog.
 
Setting form to be on top without using ShowDialog

Form.TopMost = True ' stays on top like the Find window
 
this is not working...i cant see the form on the top..

can soeone help me..
I am using VB..

the instructions are :


Dim NewMDIChild As New makebatch.Form2
NewMDIChild.MdiParent = Me
NewMDIChild.Show()


thanks
 
Back
Top