From an example of deriving classes (thanks again Tony T.) I got an idea for something that I'm working on.
I had a VB version of a "CAD Grid". It simply created a table on an autocad drawing.
I know that we now have actual AutoCAD Tables but I don't like them. (try editing one of any size)
So I want to make a C#.NET version of CADGrid.
The CAD grid I want to create has rows, columns, values, headers, fonts etc. just like the datagridview control.
So I create my CADGrid class like so:
public class CADGrid: System.Windows.Forms.DataGridView
I don't intend to use the DataGridView control at all. But it has a structure and properties that are very similar to the grid I want to make.
This is the first time that I have done such a thing so I welcome your comments.
Pitfalls, concerns, recommendations, mocking, ridicule - whatever.