Hi guys,
I'd like to know if the following behavior is due to a BUG in the Visual Studio .NET IDE, and if such is the case, I'd like to know if any Service Pack's are availble to fix this.
This is the problem: I'm trying to create a Windows Controls Class using C#.
In this class I'm trying to create some TextBox subclasses which inheriet thier functionality from the Framework class System.Windows.Forms.TextBox.
This is the path I have choosen:
System.Windows.Forms.TextBox
|
|
-----> MyAbstractTextBox
|
|
---------------> MyNumericTextBox
|
---------------> MyStringTextBox
|
---------------> MyDateTextBox
After I compile my controls class, I then refrence it from my Sample Application project, but I can't drag my Concrete TextBox classes (MyNumericTextBox,MyStringTextBox,etc.) to any of my forms. If I try to drag the class MyAbstractTextbox (which I should have not left Public access available to) it works fine.
Note that all the classes are contained in the same .DLL (myControls.DLL), and if I divide the abstract classes from the concrete classes by placing them on seperate DLL's, every thing works as excepted. My Question is, Is this the way VS .NET want's us to implement Visual inheritance or is it just a BUG in the product?
I ask this, because I believe that we should be able to include our entire class hierarchy in the same DLL, without having problems to instanciate the concrete classes.
Once again... Thanks in advance guys
Regards
NJM
"If glory comes after death, I have no hurry"
Marcial