I am fighting with this thing for the whole day. Still i couldn\'t figure out the exact solution for this. Help me out.
My objective is very simple. I want to get t
You are correct. You will need to use the Windows API. For example:
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
But first, you'll probably need to use FindWindow or FindWindowEx(?) recursively from the desktop down to where the text box is in the window hieracrchy to get the right window handle.
It looks like http://www.pinvoke.net/ has a good database of Win API's.
Hope that helps.