PDA

View Full Version : Keypress on Datepicker



Prasad_Joshi
01-02-2007, 02:56 AM
I have used Datepicker control on Form. I want the tab should move to Next control when I press Enter on Datepicker.

Keypress Event of Datepicker
If keyascii=13 then textbox1.setfocus.

But this is not working.

can anyone tell me please.

Prasad

Aussiebear
01-02-2007, 03:41 AM
Why not just set the tab order on the form

Bob Phillips
01-02-2007, 03:57 AM
Assuming that Ted's suggestion is not workable, use the KeyDown event.

Prasad_Joshi
01-05-2007, 02:43 AM
I got it.

Keydown event of Dtpicker

If keycode=13 then text1.setfocus

Prasad

Bob Phillips
01-05-2007, 03:53 AM
I got it.

Keydown event of Dtpicker

If keycode=13 then text1.setfocus

Prasad

Yeah, just like I said!