469,609 Members | 1,202 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

How to get title of all "child" windows?

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

Jan 15 '07 #1
2 3074
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)
Jan 16 '07 #2
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

On Jan 15, 8:30 pm, "Newbie Coder" <newbie_co...@pleasespamme.com>
wrote:
You need to use the EnumChildWindows API using a callback delegate function.
If you search Google etc. you'll soon find many examples. Places likehttp://www.planet-source-code.com&http://www.codeproject.comare 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)
Jan 16 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mel | last post: by
1 post views Thread by Jeff_F | last post: by
2 posts views Thread by Arnaud Diederen | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.