Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get the handle of a child window of an MDI form, please help me how to do this. Can you give me demo? Thank in advance.
Posted

1 solution

Try this dude:

VB
Dim lngHWnd As Long

    lngHWnd = FindWindowEx(Form1.hWnd, 0, vbNullString, vbNullString)

    Do Until lngHWnd = 0
        Debug.Print lngHWnd
        lngHWnd = FindWindowEx(Form1.hWnd, lngHWnd, vbNullString, vbNullString)
    Loop



Source :
http://www.vbforums.com/showthread.php?t=77795[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900