C# 源码
/// <summary>
/// 遍历页面上所有TextBox控件并给它赋值为string.Empty
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void TextBoxEmpty()
{
foreach (Control control in this.Controls)
{
if (control is TextBox)
{
TextBox tb = (TextBox)control;
tb.Text = String.Empty;
}
}
}