PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
mdi forms
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
mdi forms
![]() |
mdi forms |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

