开发者

paint an inherited control

开发者 https://www.devze.com 2023-01-26 15:39 出处:网络
I have a class in my project, that inherits from Control and contains a few other items inside a groupbox:

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

精彩评论

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

关注公众号