Getting handles of other forms

  • Thread starter Thread starter Clegg
  • Start date Start date
C

Clegg

Hello All,

I am writing an app that needs to get the handles of
other open windows my app does not own. We used to do this
with NextWindow() or EnumWindowProc() in C++ but C#
doesn't seem to have these ;(

Does anyone know how to obtain the handles of all the
open windows using C#?


-Clegg
 
Clegg said:
Does anyone know how to obtain the handles of all the
open windows using C#?

You should use the EnumWindow API still AFAIK.
 
You can still use those lovely C++ functions in your C# app. Look on
the web for tutorials on using DllImport.

I'd write more, but I gotta jet now.
 

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

Back
Top