首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

重写的控件如上图foreach(control cl in Controls)

2012-08-24 
重写的控件如下图foreach(control cl in Controls)foreach(control cl in Controls)的时候cl包含了其中的t

重写的控件如下图foreach(control cl in Controls)

foreach(control cl in Controls)的时候cl包含了其中的textbox和label和button?既然重写怎么才能在检索控件的时候只显示我重写控件的本身呢。

[解决办法]
把那些像控件的控件画出来,这样就容器中没有控件,只有画出来的"像控件的图像",另外自己编写操作方法,如仿TextBox的界面图像响应.

热点排行