VB.NET collection of windows

170 Views Asked by At

I would like to access a collection of windows (just windows that are currently open in the user's session). I will use EnumerateWindows, but I don't know how I could make them as available as .NET does it for example for processes.

I would like to be able to access them as

For Each window in Windows
    Debug.Print window.Text
    Debug.Print window.Handle
Next 

I guess I need a class to do that, but I don't have any idea who this is done in practice.

Thank you very much.

0

There are 0 best solutions below