0

Can program a.exe read some values/properties (e.g. button's text) of currently running program b.exe? If it is possible, how can it be done?

Both programs are written using .NET framework.

More details: I'm writing unit tests for another program. I need to somehow obtain legend text from one DataVisualization.Charting.Chart control.

4
  • You will have to implement an interface through which requests are handled. Something like WCF or so allows you inter-application communication. Commented May 29, 2013 at 23:00
  • 2
    What exactly are you trying to accomplish? What information do you need from the other program? Is it your program? Can the two programs cooperate? Commented May 30, 2013 at 0:02
  • If a button's text is what you are after then a UI Automation library is the way to go. Like Project White. The question is too vague. Commented May 30, 2013 at 0:44
  • Actually I need to obtain some text from Chart control. Any idea how I can do that? I can't modify the program that contains the Chart control. Commented May 30, 2013 at 7:49

1 Answer 1

0

You can do it with inter-process communication (IPC).

Check this out: http://msdn.microsoft.com/en-us/library/8119f66k(v=vs.100).aspx

Hope it helped!

Sign up to request clarification or add additional context in comments.

2 Comments

Unfortunately, I can't modify the program that contains the Chart control, so this solution won't work.
Maybe this will help then stackoverflow.com/questions/1134993/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.