| 
O.P.  RE: Visual Basic Code Help
 Ahh ok, I see what your saying. But because I want to learn this I still want to get it to work. Just for my own knoledge. Now your saying I should use EnumWindows() and EnumChildWindows() funtions right? Would they work the same as the GetWindow() and GetDesktopWindow()? Like for example: 
 
CurHwnd = GetWindow(CurHwnd, GW_CHILD) < -- Original code. 
 
CurHwnd = EnumWindows (CurHwnd, GW_CHILD) <-- Would that work? 
 |