开发者

Creating 'Non Visual' .NET User Controls

开发者 https://www.devze.com 2022-12-24 17:57 出处:网络
How do I create non visual components in .NET that can be dragged and dropped onto a Form ? For example the imagelist component is a non visual component, it appears in the toolbox and can be dragged

How do I create non visual components in .NET that can be dragged and dropped onto a Form ?

For example the imagelist component is a non visual component, it appears in the toolbox and can be dragged onto a form and properties can be set for that component.

How can I achieve that ? How can I create non visual components. I know about u开发者_开发知识库ser controls but that is not what I am looking for.

Thank you


By deriving from Component instead of Control.

public class MyNonVisualControl: Component
{

}
0

精彩评论

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

关注公众号