--- In [email protected], "dave-g" <[EMAIL PROTECTED]> wrote:
>
> Dear Guys, I'm newbie.. ^_^ v
>  
> Bagaimana mendeteksi tombol windows di keyboard? Karena saya ingin
> men-disable-kan tombol tersebut.
> Thx before and after.
> 
> 
> [Non-text portions of this message have been removed]
>

dear dave-g

1.pastikan property pada form anda adalah "KeyPreview = True"

2.bentuk sebuah procedure berdasarkan event form keydown

3.tulis proses yang akan anda lakukan di dalam procedure tsb. 
sebagai contoh: jika anda menekan tombol ESC dan anda ingin program 
berhenti, maka penulisannya adalah sbb:

 Private Sub Form_KeyDown(KeyCode as Integer, Shift as Integer)
   if KeyCode = vbKeyEscape then  'jika anda menekan tombol escape
     end
   end if
 End Sub

4.untuk mendeteksi tekanan tombol yg lain, sebaiknya anda 
mempelajari juga nilai2 lain dari KeyCode (a.l vbKeyF1 untuk tombol 
F1, vbKeyDelete untuk tombol Delete)

selamat mencoba








Untuk berhenti berlangganan kirim email kosong ke : [EMAIL PROTECTED]

Forum ini berkembang dengan pesat, jika anda memiliki
dedikasi dan waktu, silahkan mengaplikasikan diri
menjadi moderator. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/indoprog-vb/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Kirim email ke