Basically I am looking for a win32 method to invoke in C# to set the focus to a children of an unmanaged application.
But first I need to find the child control’s handle which is the problem. Any useful win32 functions to solve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a library which supports enumerating and searching window handles, which is available at http://mwinapi.sourceforge.net/
Just so that you do not have to reinvent the wheel every time 😉
Start with
and then just dig your way down (looking at class names, process names, titles, dialog IDs, whatever).