How to get title of all "child" windows?

  • Thread starter Thread starter Joe HM
  • Start date Start date
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
 
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)
 
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
 
Back
Top