How do I do this in VB in VS2005? I try creating a User Control and then going into the designer.vb file and changing the inheritance statement to C1.Win.C1Schedule.C1Schedule and that seems to work fine - the C1Schedule component renders on the User Control. But when I try to get any further, things fall apart.
In the first place, if I go into the new User Component code and create a constructor and try to add anything after InitializeComponnt, like Me.VisualStyle = etc., it blows up when I try to load the form and throws a NullReferenceException, telling me to use the "New" keyword to create an instance. I tried adding MyBase.New() before InitializeComponent - because I saw that somewhere - but it made no difference.
In the second place (although really in the first place temporally, as it occurs before the above), when I try to load the form that has the user control I get a ComponentOne dialog telling me I have to recompile with a licensed version of the product not to see this dialog. I have a licensed version, and I only see this dialog when I try to use the User Control.
I do compile the component for release before debugging. I have it listed on the toolbox and dropped it to the form from there.
What's the trick? Does anybody have an example in VB of creating a User Control from C1Schedule? There's a C# example of this somewhere in the forum - but it does something weird with a partial class instead of inheritance and I couldn't make much sense out of it. I don't know C#.