BFr*_*ree 10
你需要公开你的控件,但我不会这样做.我宁愿从我的控件中暴露出我需要的东西.如果我需要访问文本框中的文本,请说:
public class Form1 : Form
{
public string TextBoxText
{
get{return this.textBox1.Text;}
set{this.textBox1.Text = value;}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9921 次 |
| 最近记录: |