Delphi: How to get rid of "Ancestor of TMyForm not found error'?
My Workaround. There are several ways:
- Add to project full path to all of the parent form. Uncomfortable, because of absolute path
- Add package with parent forms to the project list. In this case, no problems there. But every time it is necessary to open a components in the delphi environment.
- Use a temporary solution from embarcadero.
There is automatically opens all the child forms:
Ticket, was created about 10 years ago: http://qc.embarcadero.com/wc/qcmain.aspx?d=8376
Here you can download the version for Delphi XE2: https://bitbucket.org/hemn/autoopenunit
I recommend it!
You need to have the parent form opened in the IDE or added to the project, there's no workaround, unfortunately. Over here: Register custom form so I can inherit from it from multiple projects, without copying the form to the Object Repository folder I attempted lots and lots of things, without success.