Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do ActiveX controls receive "KEYBOARD" command keys?

Status
Not open for further replies.

jefftoaster

Programmer
Feb 6, 2003
19
US
I'm trying to programatically dropdown (open the calendar window) the DTPICKER activex control with either:
keyboard "{ALT+DNARROW}"
or
keyboard "{F4}"

but it seems to be ignoring it. Of course, if I tab to the control and actually press the keys on the keyboard it works fine. Do activex controls ignore keyboard input from the keyboard command?

Any ideas how to get around this?

THANKS for any help!!
 
I'd suggest programmatically setting focus to the control prior to issuing the KEYBOARD command.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top