Silahkan tambahkan coding ini :
Private Sub txtpw_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtpw.KeyPresstxtpw.MaxLength = 20If e.KeyChar = Chr(20) Thenbtnsimpan.Focus()End IfEnd Sub
Private Sub txtpw_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtpw.KeyPresstxtpw.MaxLength = 20If e.KeyChar = Chr(20) Thenbtnsimpan.Focus()End IfEnd Sub
Belum ada tanggapan untuk "Cara Membatasi Pengetikan Huruf di Textbox VB.NET"
Post a Comment