We would like to open some Delphi (win32) forms from .NET and embed the Delphi Form in a .NET MDI-form. If we just call the exported method in our Delphi DLL it is no problem to embed the form, however then we have problems with shortcuts and keyboard events in general. We believe that it’s because of incompatible messageloops. We’ve then tried to execute an Application.Run in the exported procedures in our Delphi DLL’s on a separate .NET-thread and it works the first time, but fails when we try to open the form more than once. Does anyone know how to interop the way we would like to do it: embed a win32 Delphi Form in a .NET Winform?
@All: First of all, thanks for your responses We found a solution to our problem: We moved the Delphi Application.Run into the exported procedure that starts the windows.