The archive contains classes that can be used to enumerate and/or find windows using their titles, class names or handles.
The Helper.GetWindows() function takes one parameter, a window expression string, representing the window or controls’ hierarchy. For instance,
can be used to obtain all Internet Explorer (6.*) windows’ URLs.
Extended usage is available in the “Expressions (Usage).txt” file.
Code is compatible with both .NET Framework v1.* and v2.0; however, the sample solution file is created using Microsoft Visual Studio 2005.
- Implement starting the search from a non-top-level window.
- Implement obtaining handles to all child windows.
The source code, including a sample application, is available here
Stanimir Stoyanov is a programmer, Microsoft MVP, and Windows enthusiast. Read More...
He's currently working on an array of projects using Visual Studio 2010 on Windows 7.
- How the Active Directory – Data Store Really Works (Inside NTDS.dit) – Part 1
- Blocking unwanted advertisements and malware with a HOSTS file
- Multithreading with Windows Forms in C#
- Честита Коледа (и поздравления на спечелилите)!
- A simple backup solution using ImageX, a Windows Imaging tool
- Soon: MSDN Ultimate Subscriptions Giveaway
- Decoding FLAC audio files in C#
- Inline Tweet Translator
- Resizing forms while keeping aspect ratio
- Encoding uncompressed audio with FLAC in C#