Hi all.

(windows forms).

How I can get the text of a textbox that is on other app?

Example:
I have an app running that has a textbox which Text property is "MICROSOFT VISUAL STUDIO ROCKS!".

I want to make an application that will obtain the handle of that textbox and get its contents (its text property value). I already have the code that obtain the handle.

I think that I need to use WM_GETTEXT in conjunction with OpenProcess, WriteProcessMemory, SendMessage and ReadProcessMemory. But I have no idea how to do it.

Please help me.

Thx in advance.
Best regards,
Marco Alves.