开发者

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 :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜