>If I sub-class a form containing controls, is there any way to override the class that a specific control on the form inherits from? In other words, can I force the control to inherit from a different class than it inherits from on the parent/base form. I assume not and can see the reasoning, but wondering anyway.
>
>Thanks!
>
>Del
Del,
The controls don't inherit from the form. They are instances of built-in .NET classes that are independent of the form. To see the control declarations, expand the collapsed region near the top of the code. I forget exactly what .NET calls the region.
In the code, you should see each control declaration. You can change the inheritance by modifying the line. .NET will not overwrite your changes once they are made.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only