You need to use the FindWindowEx API to get the handle of the Edit control.
VB Code:
hParent = FindWindowEx(0, 0, "ParentWindowClass","ParentWindowName") If hParent <> 0 Then hChlid = FindWindowEx(hParent,0,"Edit",vbNullString) If hChild <> 0 Then SendMessage hChild, WM_SETTEXT, 0, ByVal "MyText" End If End If


Reply With Quote
