设计时的用户控制 [英] User Control at design time

查看:53
本文介绍了设计时的用户控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从System.Windows.Forms.Control派生一个类,在设计时会出现在窗体下,就像计时器

How to make a class, derived from System.Windows.Forms.Control appears under the form at design time, just like the the timer

推荐答案

[
Does this[^] help? Looks like you have to inherit from System.ComponentModel.Component.


您需要编写自己的用户控件-有关此内容的初学者教程,请参见http://msdn.microsoft.com/en-us/library/a6h7e207%28v=vs.71%29.aspx [ ^ ].
You need to write your own user control - for a beginner tutorial on this, see http://msdn.microsoft.com/en-us/library/a6h7e207%28v=vs.71%29.aspx[^].


正如Marc A. Brown所说,您需要从System.ComponentModel.Component继承. 这里有一些关于您可以做什么的MSDN很好的教程 [
As Marc A. Brown said, you need to inherit from System.ComponentModel.Component. Here are some good MSDN tutorials on what you can do[^]! Good luck :)


这篇关于设计时的用户控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆