skip to main |
skip to sidebar
Buka project baru Standard Exe, lalu tempat kan 2 buah textbox dengan properti sbb :
Name : Text1
Text : (kosongkan)
Name : Text2
Text : (kosongkan)
Tekan F7, atau pilih menu View -> Code, lalu ketikkan kode berikut :
Private Sub Text1_Change()
'Text1 menggunakan event Change
Dim posisi As Integer
posisi = Text1.SelStart
Text1.Text = LCase(Text1.Text)
Text1.SelStart = posisi
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
'Text2 menggunakan KeyPress
KeyAscii = Asc(LCase(Chr(KeyAscii)))
End Sub
Jalan kan project (tekan F5), dan lihat hasilnya
Path To Success by Learning Computer Science And Free Download Application
Friday, May 10, 2013
HANYA HURUF KECIL BOLEH DI-ENTRI KE TEXTBOX
Buka project baru Standard Exe, lalu tempat kan 2 buah textbox dengan properti sbb :
Name : Text1
Text : (kosongkan)
Name : Text2
Text : (kosongkan)
Tekan F7, atau pilih menu View -> Code, lalu ketikkan kode berikut :
Private Sub Text1_Change()
'Text1 menggunakan event Change
Dim posisi As Integer
posisi = Text1.SelStart
Text1.Text = LCase(Text1.Text)
Text1.SelStart = posisi
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
'Text2 menggunakan KeyPress
KeyAscii = Asc(LCase(Chr(KeyAscii)))
End Sub
Jalan kan project (tekan F5), dan lihat hasilnya
Tempat Download Aplikasi Android Gratis
Labels
Top Download PDF Belajar VB 6
Blog Archive
Powered by Blogger.
My Facebook
isaansori75@gmail.com
Popular Posts
-
Cara Root Sebagai berikut : Nih buat kalian para pengguna HH Smartfren Andromax U dan U2. Gua mau kasih tutorial cara mudah Root S...
-
Bahan - Bahannya : One Click Root DOWNLOAD Usb Driver DOWNLOAD Untuk langkah root : Instal Usb driver di pc/laptop agan Hubung...
-
Description The most REALISTIC and AUTHENTIC hunting sim returns. It's time to RELOAD your rifles and take to the wilds of Nort...



0 comments:
Post a Comment