버튼 클릭시 TextBox나 TextEdit에 있는 내용을 지워보겠습니다



private void simpleButton4_Click(object sender, EventArgs e)
{
        Name.Text = string.Empty;
}

 

(TextBox, TextEdit 이름).Text = string.Empty;





< 결과 >

클리어 버튼 클릭시 (이름)칸 TextEdit이 지워진 것을 볼 수 있습니다.

'Programing > C#' 카테고리의 다른 글

할당문과 변수초기화  (0) 2018.06.29
상수(Constant)  (0) 2018.06.28
개념정리(namespace,class,main,object)  (0) 2018.06.28
TextBox Enter Event 다음으로 이동  (0) 2018.06.15
C#이란  (0) 2018.05.28

+ Recent posts