PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms mdi forms

Reply

mdi forms

 
Thread Tools Rate Thread
Old 01-09-2003, 05:08 PM   #1
Geraldine Hobley
Guest
 
Posts: n/a
Default mdi forms


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.


  Reply With Quote
Old 01-09-2003, 05:46 PM   #2
Joe White
Guest
 
Posts: n/a
Default Re: mdi forms

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().


Geraldine Hobley wrote:
> 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.


  Reply With Quote
Old 01-09-2003, 06:25 PM   #3
Stephen
Guest
 
Posts: n/a
Default Re: mdi forms

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" <ghobley@hotmail.com>
Newsgroups: microsoft.public.dotnet.framework.windowsforms
Sent: Monday, September 01, 2003 12:08 PM
Subject: mdi forms


> 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.
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off