Opening a Delphi.NET MDI Child Form in a C# application
Posted on 2007-10-08
This could be a difficult one, so please bear with me.
I've an assembly containing Delphi 2006.NET forms.
A C# app, via reflection opens these forms . This works fine - I've a C# app, opening Delphi 2006.NET forms.
Some of these forms are MDI Child forms. Exceptions are thrown - "Cannot create form - No MDI Forms are currently active" when the C# app tries to open one of these.
The C# app does have the property MDI Container = True. I realise it is the Form that I'm trying to create throwing the exception, rather than the C# application - the Delphi Form expects the opening form to be of form style fsMDIForm.
Does anyone know of a way around this? i.e. I want the MDI children (delphi forms) to be happy about opening in a C# application whose main form is an MDI Container.
I really, really, really, really need to be able to do this. Hope some genius is out there....