TextBox textbox1 = textboxs.FindControls("烂野扒textbox1"饥昌) as TextBox;
TextBox textbox2 = textboxs.FindControls("脊虚textbox2") as TextBox;
在定义这个自凳伍定义控件的时候把三枣皮或个TextBox的属性(按自己的需要,如Text)公握态开就可以了
... ...
public string Value1
{
get{return textBox1.Text;}
set{textBox1.Text=value;}
}
public string Value2
{
get{return textBox2.Text;}
set{textBox2.Text=value;}
}
public string Value3
{
get{return textBox3.Text;}
set{textBox3.Text=value;}
}
直接和核把做唤手掘个属性把 textbox1,textbox2 返回就薯模好
public TextBox T1
{
get{return textbox1;}
}
......
panel