Thank you very much
it works :)
> hi there...
try this
http://www.mvps.org/vbnet/index.html?code/enums/enumwindowsdemo.htm
HTH..
Gonzalo Martin Bianchi
Desarrollo de sistemas de cuenta corriente tributaria
Hipolito Yrigoyen 370
Entrepiso B pasillo 600 oficina 5
4347-3181
----- Original Message -----
From: "Ozanhan Anaç" <oanac@t...>
To: "professional vb" <pro_vb@p...>
Sent: Monday, November 18, 2002 1:53 PM
Subject: [pro_vb] Getting HWND of textbox from other application
> My HWND problem wasn't solved.
> Here is my code :
>
> Public Sub GetChildren(ByVal ParentHWND As Long, ByRef ChildrenHWND() As
> Long)
> Dim UboundArr As Long
>
> ParentHWND = GetWindow(ParentHWND, GW_CHILD)
>
> Do While ParentHWND <> 0
> On Error Resume Next
> UboundArr = UBound(ChildrenHWND) + 1
> On Error GoTo 0
> ReDim Preserve ChildrenHWND(UboundArr)
> ChildrenHWND(UboundArr) = ParentHWND
>
> GetChildren ParentHWND, ChildrenHWND
>
> ParentHWND = GetWindow(ParentHWND, GW_HWNDNEXT)
> If ParentHWND > 0 Then
> UboundArr = UBound(ChildrenHWND) + 1
> ReDim Preserve ChildrenHWND(UboundArr)
> End If
> Loop
> End Sub
>
> Create a simple application with one form, put a textbox on the form
> compile it, Create a new app. in VB, find its HWND programmatically and
> then call this function. This code didnt return the HWND of textbox on
> the form. What is the problem with it?
>
> Thank you...
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or
> to unsubscribe send a blank email to