Hi!
I have old VB6 COM-component (inprocess server) which will display some info
in a VB form:
// In C#
MyVBServer theServer = new MyVBServer();
theServer.ShowInfo();
When I call the ShowInfo-method, i get the following error: "Non-modal forms
cannot be displayed in this host application from an ActiveX DLL, ActiveX
Control, or Property Page." Now, this server, MyVBServer, has property
called OwnerForm, which is used as a owner to form (VB) which is displayed.
This propertys type is (VB) Object.
My question: is there a way to do something like this in my C# (.NET 2.0)
form:
// In C#
MyVBServer theServer = new MyVBServer();
theServer.OwnerForm = this;
theServer.ShowInfo();
The VB6 code is a legacy code, which i canīt touch/rewrite.
Thx!
Kimmo Laine
|