all groups > dotnet windows forms > october 2006 >
You're in the

dotnet windows forms

group:

Modal dialogs and forms with TopLevel = false


Modal dialogs and forms with TopLevel = false Clive Dixon
10/30/2006 4:07:39 PM
dotnet windows forms:
We have an app which can have a number of forms launched via the main form.
We do not wish these other forms to be minimised when the main form is
minimised, so we have set TopLevel = false on these forms. However what we
find is that if we launch a modal dialog from the main form, we can still
activate one of the other forms but mouse input doesn't work on it (but
keyboard input does). What we would like to do in this scenario is stop any
of the other forms activiating. A model of what we want is demonstrated by
Outlook 2003 - open a new mail form, then goto main Outlook window Tools -
Options; whilst the modal options dialog is open I cannot go back to the
email form again. How do I implement this behaviour in .NET forms?

--
======================
Clive Dixon
Digita Ltd. (www.digita.com)


Re: Modal dialogs and forms with TopLevel = false Clive Dixon
10/30/2006 4:17:30 PM
Sorry, should have said TopLevel = true

--
======================
Clive Dixon
Digita Ltd. (www.digita.com)


"Clive Dixon" <clived.noluncheonmeat@digita.noluncheonmeat.com> wrote in
message news:ON65H2D$GHA.3584@TK2MSFTNGP05.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button