quote:
Originally posted by Mattike
In the second case, you'll have to do it in a dirty way. That is, when you open your "modal" window, you disable your parent window with EnableWindow and re-enable it when you close it (in the OnWindowIdEvent_Destroyed event). I don't know if it's possible to set the focus to your modal window when you try to enable the parent window through a click or something, maybe you should experiment with that?
That's what I'm currently doing for right now. It's the only thing I could think of to prevent the user from clicking the main window while a dialog box is open.