Error: “Cannot make a visible window modal”

Question: I’m trying to show a form modally; however, my application raises an exception: “Cannot make a visible window modal.” How do I solve this?

Answer: Set the form’s Visible design property to False.

To do this:

  1. Open your project in Delphi
  2. Open the form that raises the exception.
  3. In the Object Inspector, set the form’s Visible property to False.
  4. Save, compile, and run your application.

The creates the form as an invisible window, which lets you show it modally.

Thank’s to:  Lance Leonard
Source:  http://www.techtricks.com/delphi/makevisible.php

Advertisements
Error: “Cannot make a visible window modal”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s