Re: Form that is already displayed modally cannot be displayed as a modal dialog box. Close the form before calling showDialog.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Jared wrote:

How can I even show same form twice if modal forces stop of execution.

Easily. Foo is shown modally, but has a button that creates a new Foo
and tries to show it modally. (Note that you can do this, if you use
Show, instead of ShowDialog.)

Poor error, Microsoft.

Error is .
Form that is already displayed modally cannot be displayed as a modal dialog
box. Close the form before calling showDialog.

What do you think it should say?

--

..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn Great reviews & good sales.
.


Quantcast