Tedob1, thanks.... that is exactly what i needed to know... i wasnt sure if u could use the username[email protected] format. Thanks, if I wanted to fill in the dialog box... what would i do? how do you make visual basic recognize an active window... i do not know if your familar with autoit...... but with the WinExist or WinActive command i can do what i was saying..... IE:

WinWaitExist (enter password)
Send("UserName")
Send("{tab}")
Send("password")

that is a simple version.... but i want to be able to identify windows with visual basic and fill out certain forms in a window... i know visual basic has something similar to autoit's window information tool.... which views specific information about the active window......