In VB6, I use API to control the clicking and filling of text for another program. For example, I use the API FindWindowEx to get the handle of an object. From there, I can use SendMessage to do whatever I need.

What is the best way to do that in .Net?