I have a class that based on a timer will pop up a dialog based on a
lasped amount of time.
The problem is that in the timer elapsed event I create and use
ShowDialog to show the timeout form:
frmTimeout dlg = new frmTimeout();
dlg.ShowDialog(dlgOwner); <-- dlgOwner if the IWin32Window of the
window in focus
When the dialog opens, it is not modal. I've tried passing the
IWin32Window of the dlg in focus, just using ShowDialog() but no luck.
Is there a way to open this dialog from code and have it truely modal?
(I don't want to use the AlwaysOnTop flag).
thanks,
Jamie