That isn't enough, you need to get the handle to the textbox you want to send text to. You might try EnumChildWindows where you pass it the handle to the browser control. You might also consider calling SendMessage and passing it WM_SETTEXT (0x000C) with the handle to the textbox instead of using SendKeys.
[DllImport("user32.dll")]
static extern bool EnumChildWindows(IntPtr hwndParent, EnumWindowsProc lpEnumFunc, ref IntPtr lParam);
- Nick Parker Microsoft MVP - Visual C#
My Blog | My Articles