We have a VB6 app that shows a .NET WPF modal Window (on the main VB6 thread).
It correctly blocks interaction with the VB6 UI, because the thread blocks at window.ShowDialog().
We also have a timer in VB6. Since the timer ticks on the main thread (Does VB6 Timer control create separate thread?), I would expect that the timer would also be blocked until the modal Window closes. This is not the case. The VB6 timer continues to tick, executing VB6 code on tick, and updating the blocked VB6 UI. Further, once the timer ticks for the first time, the WPF window LOSES its modality - meaning I can click back to the VB6 screen and the WPF window will move behind the VB6 window.
Any idea what's up with this? Is WPF handling WNDPROC messages and then suddenly letting VB6 code executing and for some reason losing IsThreadModal?
Thank you.