How to - Access another application's Text

  • Thread starter
  • Start date


How can I access another application window's Text? It is ilistview if seen
by spy++.

I know we have to get the windows handle and read the text.

But I cannot seem to find any c# code for that.

Any ideas ? suggestions ? Demos ?

Thank You
Hemang Shah MCSE A+
Enterprise Messaging Support
Direct phone: (905) 568-0434 x 23854
Email: (e-mail address removed)
Office hours: Mon to Fri from 21:00-05:30 hrs EST.

If you need to speak to someone when I am not available, please contact one
of the following:
Backup Brian Drepaul at (877)568-2495 x 23830or (e-mail address removed) -
Manager Daniel Carrasco at (905) 361-9122 or (e-mail address removed) -

If you would like additional technical information from Microsoft, we invite
you to attend a FREE TechNet event near you. Registration is easy at Referral Code=TNPSSE. Are you secure? For
information about the Microsoft strategic Technology Protection Program and
to order your FREE Security Tool Kit, please visit

Proactively analyze your Exchange environment! Download and run the Exchange
Best Practices Analyzer here:


Hi Hemang
if I got what you want correctly , then . For managed code you can use
something like the .net reflector . Check . it reverse engineer the PL to either
C# or . still it is not almost 100% accurate and you still can
confiscate your code so such operations wouldn't work .
hope this helps
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Hemang Shah

I do not want to reverse engineer the target application.

I want to access some text of the target application when it is running from
my C# Application

Using the API GetWindowText and so on.

I'm looking for a sample code for that.



Hemang Shah


What I want to do is access the text on another application's form which is

Not the source code.a

We do it by using the windows handle & "GetWindowText" I think

But I was looking for some c# example on that.


Hemang Shah

Any c# sample application anywhere?

Can I get even child windows ? which has an ilist control?

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question