Is it possible to get a control at the current mouse location if its in a window not known by the application? (not in Application.OpenForms
)
I implemented a low level mouse hook which can get the mouse location anywhere on the screen, but I can't seem to access controls outside of my application. What I want to be able to do is get a button in an OpenFileDialog. I can get a Handle to the dialog, but I can't get the control from the dialog using Control.FromHandle()
since this only works for controls that are in the Application.