Re: MDI child and tool widows - always on top?
- From: Mitchell Vincent <mvincent@xxxxxxxxxxxxxxxx>
- Date: Thu, 19 May 2005 08:50:53 -0400
Peter Huang [MSFT] wrote:
Hi
I think you may try to run the code in the Child Form's Form_Load event, then the embeded form will on the child form only.
Based on my research, the other floating windows, including the toolbar of VS.NET IDE will not have hightlight when we click on it.
the Form2 is a child form
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim f As New Form3
f.TopLevel = False
Me.Controls.Add(f)
f.Parent = Me
f.TopMost = True
f.Show()
End Sub
Best regards,
Hi Peter! The problem is, however, that the form (Form3 in your example) isn't showing on top of the 'parent' MDI child at all. I could almost live with it not looking like it has focus, but it has to remain on top.
Perhaps the best way would be to loop through the MDI children and see if the contact window exists (I can make the title of the window correspond).
How do I loop through all open windows and apply focus to one (which would go in the parent form's focus event, I assume)?
Thanks!
-- - Mitchell Vincent - kBilling - Invoices Made Easy! - http://www.k-billing.com .
- Follow-Ups:
- Re: MDI child and tool widows - always on top?
- From: "Peter Huang" [MSFT]
- Re: MDI child and tool widows - always on top?
- References:
- MDI child and tool widows - always on top?
- From: Mitchell Vincent
- Re: MDI child and tool widows - always on top?
- From: Eric Moreau
- Re: MDI child and tool widows - always on top?
- From: Mitchell Vincent
- Re: MDI child and tool widows - always on top?
- From: "Peter Huang" [MSFT]
- MDI child and tool widows - always on top?
- Prev by Date: DateDiff rounds?
- Next by Date: Re: cascading combobox
- Previous by thread: Re: MDI child and tool widows - always on top?
- Next by thread: Re: MDI child and tool widows - always on top?
- Index(es):
Relevant Pages
|