Custom control references

L

Lionel

Hi,

I've created a C# custom control that references some ActiveX controls.
I need to host this control on a form that also hosts the same ActiveX
controls.

So I add the custom control and the individual ActiveX's to the toolbox
& when I try to host the user control on the form using the toolbox,
the VS.NET interop kicks in generates Ax*** wrappers for these.

On compiling the app, I get CS1595 warnings:

"'AxImageLib.AxImageCtrl' is defined in multiple places, using
definition from C:\Work\ImageCtrl\ImgCtrl.dll"

How serious are these warnings & is there anyway to eliminate them?

Thanks,
Lionel
 
G

Guest

As long as they are all referencing the same activex dll version then it
should all work fine. Its just a feature of how VS makes sure you have all
the references in the build.

Ciaran O'Donnell
 
L

Lionel

Thanks for your reply.

If I manually add a reference to the user control from the solution
tab, VS.NET doesn't generate the interop files & only adds the user
control. Which is what I'd like to have when adding the user control
via the toolbox. So its something that the toolbox does.

Would be nice to have a way to disable this feature while adding
controls.

Cheers,
Lionel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top