Cross-posting windowsforms group
jonpb wrote:
Hi, I used to AxImp.exe to generate the wrappers for an ActiveX control.
Now how do I import the wrapper into my project? I tried "Add
Reference..." and browsed to the .dlls but I still don't see it in my
Toolbox.
Thanks
I tried dragging and dropping the control onto the toolbox in C# IDE but
that did not work.
I am now trying to do it with code. I generated the source with
AxImp.exe, added the two dlls as References and the .cs file to my
project and now I get the error:
Error 19 Duplicate 'AssemblyVersion' attribute
C:\Code\ModelMaker\Properties\AssemblyInfo.cs 32
on the line of code:
[assembly: AssemblyVersion("1.0.0.0")]
Any ideas? Thanks.
I have another question. This ActiveX control communicates to the
application through Events. Does the ComVisible attribute need to be set
to true for Events to work? Thanks again.