paint an inherited control
I have a class in my project, that inherits from Control and contains a few other items inside a groupbox:
class ProgressControl : Control
{
private GroupBox TrackGroupBox;
//some o开发者_如何转开发ther stuff
}
I have overridden the Width, Top, Left etc top affect the groupbox and subitems. How Do I paint the groupbox when I do something like:
Panel.Controls.Add(ProgressControlInstance)
?
Solved, I just inherit from GroupBox :)
精彩评论