Hi, I'm trying to use an ActiveX Control (say C1) written in VB in a C# Windows Form (F) on Windows XP. This control uses another ActiveX Control (say C2) to control a device connected to the parallel port. C1 also uses mscomm32.ocx but I don't know what it is used for or whether it's used at all. I don't have source for either control. The Windows Form is created with VS.Net IDE.
What happens is: C2 works with VB6, and in F C1 works with VB6 and Access C1 doesn't work in F - When adding it to the form, I get an error saying that it can't connect to the device. It may be a misleading error because C1 works fine with VB6 and Access. I tried to use AxImp to generate the two wrapper DLLs and a client C# class for each control, and add references to the DLLs to the VS.Net project. I also added the generated C# class to the project. However, when I open the form, it simply displays the error: The designer must create an instance of type 'System.Windows.Form.AxHost' but it can't because the type is declared as abstract. I can't find anywhere in the generated class that appear to need to instantiate AxHost. Can anyone point me to where I should be looking at to solve this problem? Thanks in advance, Donald Xie You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.