mdi forms

  • Thread starter Thread starter Geraldine Hobley
  • Start date Start date
G

Geraldine Hobley

Hi,
I'm having a problem with an mdi form that keeps going
to the background. I wish it to stay to the foreground all
the time.

the code I have to display the form is as follows:

Public childform As New frmMyform
childform.MdiParent = Me.MdiParent
childform.Location = New System.Drawing.Point(400, 350)
childform.show.

the topmost property of the childform is set to true

Any ideas of what I can do to keep this childform to the
foreground all the time.

thanx
Geraldine.
 
Do you really need it to be inside the MDI area? I'm not sure if
Topmost works with MDI child forms.

If you want something like a modeless dialog (e.g., Internet Explorer's
Search dialog box, which floats in front of the window, but not on top
of other applications, and which isn't confined to the parent form's
client area), then take a look at Form.AddOwnedForm().
 
I'm not sure if topmost works on mdi forms or not, but if it does and you
have other mdi forms set to topmost also, they are considered to be on the
same level and can still cover each other.

----- Original Message -----
From: "Geraldine Hobley" <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.windowsforms
Sent: Monday, September 01, 2003 12:08 PM
Subject: mdi forms
 
Back
Top