Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing components
Message
From
24/10/2002 09:26:59
Rex Mahel
Realm Software, Llc
Ohio, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00712782
Message ID:
00714795
Views:
23
Rick,

My base component is set to MustInherit. My subclass code is shown below:
'***************************************************************************
'Class        : GeneticsBusinessObjectBase
'                                                                          
'Author       : Rex L. Mahel
'
'Date         : 08/24/2002
'
'Revisions    :
'
'Author               Date                  Description                   
'***************************************************************************

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.
Previous
Reply
Map
View

Click here to load this message in the networking platform