2 ways:
1. under TForm:
if assigned(focused) then
Focused.keydown(key,keychar,[]);
2. using screen object:
if assigned(Screen.focusControl) then
Screen.focusControl.keydown(key,keychar,[]);
I think lots of people want to know this.
Best regards
John Shi
http://bbs.2ccc.com/topic.asp?topicid=513745