Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ControlID error when subclassing third-party controls
Message
From
10/03/2004 07:05:00
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00881974
Message ID:
00884769
Views:
76
Hi Kevin,

>I don't see anything wrong with the code you've posted...this IS strange behavior. How about posting the code you've put in the subclass you've created...there might be something we can see in that.

The code of the subclassed control is just inheriting from the SyncFusion CheckBoxAdv and the ImmBindingList and ImmUISecurity interfaces. The same as for the mmComboBox.
public class OurComboBoxAdv : Syncfusion.Windows.Forms.Tools.ComboBoxAdv, ImmBindingList, ImmUISecurity
In the body of the subclassed control are the implementations of ImmUISecurity, ImmBinding, ImmBindingList interfaces, the override of the OnPaint and Text method and property respectively, which is copied from the mmComboBox.cs file. Besides the default (empty) constructor there is this one :
public OurComboBoxAdv(System.ComponentModel.IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
   container.Add(this);
   InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}
Regards

-Filip
Previous
Reply
Map
View

Click here to load this message in the networking platform