memang datepicker control nggak menerima key Enter
untuk dikirimkan ke Form_Keypress.
jadi salah satu jalan gunakan Form_KeyUp atau
Form_KeyDOwn.
Berikut contoh kodenya
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then ' The ENTER key.
KeyAscii = 0 ' Ignore this key.
End If
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As
Integer)
If KeyCode = vbKeyReturn Then ' The ENTER key.
SendKeys "{tab}" ' Set the focus to the next
control.
KeyCode = 0 ' Ignore this key.
End If
End Sub
Tks & Rgds,
Ade Aan Wirama
J-DEVELOPMENT (as partner of Yayasan Jaring
Kemanusiaan Nusantara)
Coding for Humanity
*to join subscribe
[EMAIL PROTECTED]
--- WAHYUDIN <[EMAIL PROTECTED]> wrote:
> Tanya bagaimana pindah antar kontrol dgn keypress
> Enter ?
> Pada form1 saya menggunakan DTPicker1 (TabIndex =
> 0), DTPicker2
> (TabIndex = 1), dan tekt1(TabIndex = 2).
> Bagai mana listing untuk Keypress Enter dari
> DTPicker1 ke DTPicker2
> dan dari DTPicker2 ke text1 ?
> Atas bantuan dan saranya saya ucapkan terima kasih.
>
>
>
>
>
>
> Untuk berhenti berlangganan kirim email kosong ke :
> [EMAIL PROTECTED]
>
> Bagi terjangkit virus lokal, zip virus tersebut
> dan kirim ke [EMAIL PROTECTED], kami
> akan membuat removalnya untuk anda.
> Yahoo! Groups Links
>
>
> [EMAIL PROTECTED]
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Untuk berhenti berlangganan kirim email kosong ke : [EMAIL PROTECTED]
Bagi terjangkit virus lokal, zip virus tersebut
dan kirim ke [EMAIL PROTECTED], kami
akan membuat removalnya untuk anda.
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/