【发布时间】:2018-02-16 18:50:44
【问题描述】:
我在用户控件中添加了以下属性
private Control _associatedControl = new Control();
[Description("Sets Asociated Control"),
Category("EzData"),
DefaultValue(""),
Browsable(true)]
public Control AssociatedControl
{
get => _associatedControl;
set
{
_associatedControl = value;
}
}
在设计时控件列出了父窗体中的所有控件。 我的问题如何使列表仅包含某些域中的控件(我设计的其他用户控件)。
【问题讨论】:
标签: c# .net winforms user-controls windows-forms-designer