How to access inherited controls in the winforms designer

后端 未结 5 1321
盖世英雄少女心
盖世英雄少女心 2021-01-04 18:58

I\'m making some controls which all have to share the same look and some common behavior, although they are meant for different kind of inputs. So I made a BaseClass which i

5条回答
  •  情歌与酒
    2021-01-04 18:59

    Try making a ParentControlDesigner for your control, overriding InternalControlDesigner, and returning (designerHost.GetDesigner(tableLayoutPanel) as ControlDesigner). designerHost is (IDesignerHost) component.Site.GetService(typeof(IDesignerHost)).

提交回复
热议问题