How to use FindWindowEx to find image button

600 views Asked by At

I'm trying to use the Windows API SendMessage to find and click a button. It currently works when the Windows form has a standard button with text, but not when the button is in the form of an image with no text.

    hwndChild = FindWindowEx((IntPtr)hwnd,IntPtr.Zero,"Button","Open");

As you can see, I'm trying to find the "Open" button, but it cannot be found because the button designed with an image instead of text. How can I fix or work around this..?

0

There are 0 answers