반응형

private void txt_Id_KeyPress(object sender, KeyPressEventArgs e){
if (e.KeyChar == (char)Keys.Enter){
txt_Pwd.Focus(); //textbox.Focus();
}
}
private void newText_KeyDown(object sender, KeyEventArgs e){
if (e.KeyCode == Keys.Enter)
button1_Click(sender, e);
}
반응형
'C#' 카테고리의 다른 글
| [C#] Invoke, InvokeRequired (0) | 2021.02.16 |
|---|---|
| [C#] DB연결 SQLConnection (0) | 2021.02.16 |
| [C#] 폼의 X버튼 클릭시 확인 메세지 생성 (0) | 2021.02.16 |
| [C#] textbox값 전송 (속성) (0) | 2019.12.04 |
| [C#] DataRow를 이용한 sqldb 다른폼으로 넘기기 (0) | 2019.12.04 |