Okay,

The logon box is in another application, which will be someday fully automated. It has 2 text boxes, username and password, and a couple button classes. Using sendmessage, I'm able to locate the first textbox and the first button. How do I tell it to move to the next textbox or button? I know i use ->

retval = findwindowex(hWnd, 0, "Edit", vbNullString)

That works great to find the first edit control, but I can't access the second one. Help??????????????