Peter Huang [MSFT] wrote:[color=blue]
> 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,
>[/color]
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