CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    Get one of the chirldren window

    Hello
    I have a MDI application with open so many chirldren windows. However, how can i get one of the chirldren window that currently NOT on the top if i need it?

    Sooner Or Later, Everyone Does...

  2. #2
    Join Date
    Sep 2000
    Posts
    58

    Re: Get one of the chirldren window

    you could do something like the following:

    Dim frm As Form 'All forms currently loaded
    Dim frmfound As Form 'Result
    Dim strname As String 'Name of form you want

    strname = "Frm_disttree"

    For Each frm In Forms
    If frm.Name = strname Then
    Set frmfound = frm
    End If
    Next frm
    'frmfound now points to desired form
    MsgBox frmfound.Name 'Do what you want with it


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured