To derive a class from the Panel object, you do something like this:
public class MyPanel : System.Windows.Forms.Panel {
override void OnPaint(PaintEventArgs e) {
base.OnPaint(e);
}
}
Override the Panel methods to extend its functionaliy. You can then place an instance of the MyPanel class in your form.