How to get title of all "child" windows?

J

Joe HM

Hello -

I have an application with which I am trying to determine whether
another application has a "child" window open. So I used
Process.MainWindowTitle() but that will only give me the main window
since the "child" window does not get its own button in the Task Bar.

Is there any way to get the window titles of all open windows including
the ones that do not show in the Task Bar?

Thanks!
Joe
 
N

Newbie Coder

You need to use the EnumChildWindows API using a callback delegate function.
If you search Google etc. you'll soon find many examples. Places like
http://www.planet-source-code.com & http://www.codeproject.com are two good
sites for free source code

I hope this was of some help to you

Do yourself a favour Joe & spoof your e-mail address unless you are fond of
SPAM.

Newbie Coder
(It's just a name)
 
J

Joe HM

Hello -

Thanks for the feedback ... took me a while to make this work for
VB.NET (most examples were in VB6) but now it's working like a charm!

BTW ... the e-mail address you can see IS my "spam" account ...

Thanks again!
Joe
 

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

Top