Rick,
My base component is set to MustInherit. My subclass code is shown below:
Public MustInherit Class GeneticsBusinessObjectBase
Inherits ODHBusinessObjectBase
#Region " Component Designer generated code "
Public Sub New()
MyBase.New()
DBConnectionName = "GeneticsDBConnection"
End Sub
#End Region
End Class
After I build the base class application, I get the below message.
Any ideas?
Thanks
Rex
>Does your code implement the Constructor? And if so does it call InitializeComponent? I know in forms this is required for the form to render in the designer. I suspect the same is true for components. You can try removing the constructor which should then inherit from the base constructor.
>
>+++ Rick ---
>
>>Jose,
>>
>>I have a component created from the designer. I make another component and change the inherits line from the base class to my parent class. I get the below message after I have saved the subclass and try to open it again in the designer.
>>
>>Thanks
>>
>>Rex
>>
>>>>I am not trying to drop a component on a document. I am trying to create a subclass in the component designer.
>>>>
>>>>So you are saying that you cannot maintain a component, in the designer, subclassed from an abstract class???
>>>>
>>>
>>>Rex:
>>>Now I've lost you. What exactly are you doing? when you say:
>>>
"I have an abstract component base class I want to subclass. When I attempt to open the subclass...">>>
>>>In particular, what do you mean by
"open the subclass">>>
>>>Are you building -in code- a new designer? (directly or indirectly derived from System.ComponentModel.Design.ComponentDesigner)
>>>Or you are building a custom control?
>>>
>>>Regards
>>>Jose.