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:
- Open your project in Delphi
- Open the form that raises the exception.
- In the Object Inspector, set the form’s Visible property to False.
- Save, compile, and run your application.
The creates the form as an invisible window, which lets you show it modally.