Home about IT Motivation Course Sales Project About Me

Thursday, May 13, 2010

penggunaan KeyAscii di VB6

berikut contoh penggunaan enter di login menu
Private Sub passwd_KeyPress(KeyAscii As Integer)
' detect when user presses "Enter" key and if so validate password
If KeyAscii = 13 Then
' this is the call on the routine that does the password checking
Call passwd_Validate(False)
End If
End Sub

No comments: