问题描述
没关系
class textbox:TextBox
{
protected override void InitLayout()
{
base.InitLayout();
BackColor = Color.Beige;
}
}
班级实验室:标签
{
protected override void InitLayout()
{
base.InitLayout();
BackColor = Color.Beige;
}
}
我怎样才能将这个课程用于所有形式的标签控件........... like label1,label2,label3,
llbtime,lblname,lblcity ...... etc
和文本框.......
如何申请或调用此方法...
that's ok
class textbox :TextBox
{
protected override void InitLayout()
{
base.InitLayout();
BackColor = Color.Beige;
}
}
class lab :Label
{
protected override void InitLayout()
{
base.InitLayout();
BackColor = Color.Beige;
}
}
how can i use this class for all the label controls in the form...........like label1, label2, label3,
llbtime, lblname, lblcity...etc
and textbox .......
how can i apply or call this method...
推荐答案
这篇关于基于C#.net windows的应用程序..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!