R
Richard Lewis Haggard
In 2005, I tried to derive a class from Label but something is not quite
right.
To create the class in the first place, I right clicked on the project and
chose the Add->Class menu item. I then derived the class as
public class LabelGrid : Label
However, the overrides don't seem to be getting called. For example, the
background paint routine was defined as
protected override void OnPaintBackground(PaintEventArgs pevent)
So, what did I do wrong?
right.
To create the class in the first place, I right clicked on the project and
chose the Add->Class menu item. I then derived the class as
public class LabelGrid : Label
However, the overrides don't seem to be getting called. For example, the
background paint routine was defined as
protected override void OnPaintBackground(PaintEventArgs pevent)
So, what did I do wrong?