기술문서창고/asp
VB에서 Tab키가 아닌 엔터키로 텍스트 박스 이동
progh2
2005. 5. 22. 15:02
출처: http://cafe.naver.com/walnuts/49
텍스트 박스 이벤트 중 KeyPress를 선택한 후 다음과 같이 기술하여 주면 됩니다.
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then Text2.SetFocus
End Sub
여기서 Asciicode중 13번은 엔터키를 의미합니다
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then Text2.SetFocus
End Sub
여기서 Asciicode중 13번은 엔터키를 의미합니다