从当前窗体检索这些TextBox然后赋值即可;你也可以在创建它们的时候把它们存到一个List中,赋值的时候遍历List的成员 foreach (Control control in this.Controls) { var textContrl = control as TextBox; if (textContrl != null && textContrl.Name.StartsWith("text")) { textContrl.Text = textContrl.Name.Replace("text", string.Empty); }