Loop through MDI children

  • Thread starter Thread starter Mitchell Vincent
  • Start date Start date
M

Mitchell Vincent

I would like to loop through the MDI children of a project to find a
window with a specific title and give that window focus (if it exists).
I can't seem to find an end-to-end VB.Net example of how to do it!

Thanks!
 
Mitchell Vincent said:
I would like to loop through the MDI children of a project to find a
window with a specific title and give that window focus (if it exists).

\\\
For Each Child As Form In Me.MdiChildren
If Child.Text = "Bla" Then
Me.ActivateMdiChild(Child)
Exit For
End If
Next Child
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top