Cry Ant Crew
Would you like to react to this message? Create an account in a few clicks or log in to continue.


We are Just Computer Freaker
 
IndeksPencarianLatest imagesPendaftaranLogin
Login
Username:
Password:
Login otomatis: 
:: Lupa password?

 

 mengabaikan Specific Characters di TextBox

Go down 
PengirimMessage
Qrembiezs
Security Team
Security Team



Jumlah posting : 93
Join date : 05.04.11
Lokasi : %windir%regedit.exe

mengabaikan Specific Characters di TextBox Empty
PostSubyek: mengabaikan Specific Characters di TextBox   mengabaikan Specific Characters di TextBox EmptySat 8 Feb 2014 - 13:45

Persiapan :
1. 1 Form
2. 1 TextBox

Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
Dim sTemplate As String
sTemplate = "!@#$%^&*()_+="
If InStr(1, sTemplate, Chr(KeyAscii)) > 0 Then KeyAscii = 0
End Sub

Ganti '!@#$%^&*()_+=' dengan character yg harus diabaikan
Kembali Ke Atas Go down
 
mengabaikan Specific Characters di TextBox
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» Hanya mengijinkan LowerCase di Textbox
» Hanya mengijinkan UpperCase di Textbox
» Hanya mengijinkan Numbers di Textbox
» Tandai semua character di dalam textbox

Permissions in this forum:Anda tidak dapat menjawab topik
Cry Ant Crew :: Information Technology :: Programming :: Visual Basic-
Navigasi: