lupa ngasih cara pakenya :) letakkan ini di event key pressnya:
KeyAscii = SetAlphaNumericOnly(KeyAscii)
On 4/5/06, dickyfirman <[EMAIL PROTECTED]> wrote:
Terima kasih atas bantuannya ya..
Saya akan mencobanya...(semoga bisa)..
--- In [email protected], "Purwedi Kurniawan"
<[EMAIL PROTECTED]> wrote:
>
> biar textboxnya hanya bisa buat angka n string saja, di event keypress
> check apa yg diinput user dg fungsi berikut:
>
> Public Function SetAlphaNumericOnly(KeyAscii As Integer) As Integer
> Dim s As String
> s = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
> If Not (InStr(s, Str(KeyAscii)) > 0) And Not KeyAscii =
vbKeyBack Then
> SetAlphaNumericOnly = 0
> Else
> SetAlphaNumericOnly = KeyAscii
> End If
> End Function
>
> kalau buat tampilan, coba cari komponent2 3rd party yg khusus buat
UI, ada
> banyak banget pilihan tapi yg bagus biasanya sih harus beli :)
mungkin yg
> mas maksud itu yg sejenis vb skin, coba aja liat2 di
www.componentsource.com
> .
>
> best regards
> [wwn]
Wahana Programmer Groups Links
<*> Untuk mengunjungi sponsor milis ini, klik link berikut:
http://wahanaprogrammer.net
<*> Untuk menghubungi owner milis ini, kirim email ke:
[EMAIL PROTECTED]
<*> Konsultasi pemrogramman bisa chat disini:
Yahoo! Messenger: wahanaprogrammer
SPONSORED LINKS
| Programmer | Indonesia | Basic programming language |
| Computer programming languages | Programming languages | Java programming language |
YAHOO! GROUPS LINKS
- Visit your group "Programmer-VB" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
