How can I programatically find the handle of a user control in a webpage running on IE?
I’m able to find it using Spy++ but since the handle keeps changing I’m stuck.
I’ve been trying using FindWindow() but no luck 🙁 I also wonder if I am doing something wrong or it simply only work for Windows…
Thanks in advance,
Zubrowka
I had a similar problem finding a PDF ActiveX Control inside a IE control in WPF.
To overcome the problem I used the
EnumChildWindowsAPI to find the correct child window and thus get its handle.I’ll include as much code as I can.
transcribed in a rush so I hope it is both helpful and accurate.