Re: Modal dialog from .cs file
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Nov 2005 10:22:07 -0500
Jamie,
It works for me. Can you post an example of where calling ShowDialog
doesn't make the form modal?
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"jamie" <no@xxxxxxx> wrote in message
news:CMmef.1512$w84.318753@xxxxxxxxxxxxxxxxxxxxxxxx
>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
.
- Prev by Date: Re: application design problem
- Next by Date: Re: how to make a form "stick" to another window?
- Previous by thread: Is VS2005 optimized for ... ?
- Next by thread: Re: how to make a form "stick" to another window?
- Index(es):
Relevant Pages
|