I have a main app that is able to call .net methods. My .net method starts a new thread that shows a modal form.
Now my .net method needs to disable all windows from the main app while the modal form is shown.
How can I do this?
I was thinking about the win32 method “GetWindow”,, but then I would need the handle of the main-app form.
In my example you see the main app that calls the method with the modal dialog.
When I click on the main app while the threadingform-dlg is open, the threadingform-dlg should blink.

1 Answer