so that it can catch such a window's messages
or the handle to a window in a foreign process
Not for external processes, where a Global hook (DLL) is needed to intercept windows messages
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
WHAT I HAVE:
Visual Basic 2019, WinForms, .NET Framework 4 and up
MY ISSUE:
I wonder if a NativeWindow instance can be assigned the handle for a window that isn't exposed by one of the current WinForms app's forms or controls so that it can catch such a window's messages--for instance, the handle to a combo box's drop-down list (which has to be retrieved using Win32 API), or the handle to a window in a foreign process (retrieved by, say, Process.MainWindowHandle). My intuition says yes, but I want to be sure.
Please reply ASAP, and given any answers in VB.NET and as simply as possible.
so that it can catch such a window's messages
or the handle to a window in a foreign process
Not for external processes, where a Global hook (DLL) is needed to intercept windows messages
To: Castorix31
You just answered my questions. Thank you!