473,499 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom control references

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

Nov 8 '06 #1
2 3418
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

"Lionel" wrote:
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

Nov 8 '06 #2
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

Ciaran O''Donnell wrote:
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

"Lionel" wrote:
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
Nov 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
2949
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
7
2971
by: Shimon Sim | last post by:
I have a custom composite control I have following property
5
2625
by: | last post by:
Hi all, Has anyone been able to write some custom javascript on the onclick event of submit button to do certain things like disable submit button, only submit form once etc. This was a breeze...
0
1404
by: Eachus | last post by:
Hello, I’m trying to create a web custom control. I’ve worked in asp.net extensively, but this is the first time I’ve attempted a web custom control. As a test, I created a control exactly...
6
2647
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom...
2
2562
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
19
4889
by: Jamey Shuemaker | last post by:
I'm in the process of expanding my knowledge and use of Class Modules. I've perused MSDN and this and other sites, and I'm pretty comfortable with my understanding of Class Modules with the...
3
1413
by: Tomasz J | last post by:
Hello Developers, I have a control derived from System.Web.UI.WebControls.WebControl. Control has this property: public string Value { set { _value = value; } get { return _value; }
4
2462
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried...
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.