Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ControlID error when subclassing third-party controls
Message
 
To
01/03/2004 04:00:26
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00881974
Message ID:
00882220
Views:
73
Filip,

>We've been subclassing third-party UI controls (Syncfusion) and, following Kevin McNeish's example (as seen in an msdn magazine article), let the subclassed components inherit from the MM binding and security interfaces.
>Upon dragging two CheckBoxAdv on the UI and building the following errors occur :
>
>Duplicate declaration of member 'ControlID'
>Duplicate declaration of member 'ControlID'
>
>and the two CheckBoxAdv disappear from the UI. They are still in the generated code though.
>We've tried, for each of the CheckBoxAdv, to generate a GUID, saving and building with the same result. Until now, the CheckBoxAdv and ComboBoxAdv are the only ones that we have had these problems with.

I'm not sure why you're getting this error...VS .NET has reportedly had issues with displaying this message when there really wasn't a problem. I recommend trying it on a new form to see if you still get the error. If you DO still get the error, I recommend looking closely at the code added to the form when you drop an instance of the control on it.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform