C#
C# / 텍스트 박스 전부 비우기
캬옹냐옹
2021. 4. 12. 11:09
728x90
foreach(Control control in this.Controls)
{
if(control is TextBox)
{
TextBox textBox = (TextBox)control;
if (textBox != null) textBox.Text = string.Empty;
}
}
실행하는 UI에 따라서 다른것 같긴 한데 우선 기록 해둔다.
728x90