I\'d like to retrieve text from textbox in my another application. ProcessName from second application is \'TestTextBox\', TextBox\'s name is \'textBox1\'.
My code,
What is the "another application"? Is it something you are writing? Could it be running on another machine? In another domain? Under another user account? Could the target application, form, or textbox ever change? Do you need asynchronous (i.e. non-blocking) communication between applications?
If the answer to any of those questions is "yes", you should consider using .Net Remoting. This is available from .Net 2.0.