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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What has focus with keypreview

Status
Not open for further replies.

DarrenWard

IS-IT--Management
Feb 15, 2002
217
GB
How can you tell what control has the focus when a keypress event is triggered on a form.

I want differnt results from a certain keypress depending on what control has the focus at the time.

Is there a command for this that I cant find, or is it simply a case of keep track through a variable.

Darren

GuiltyMaggot - The best rock band in the world!
 
Thanks ramani,

Im sure im going mad, but just couldnt find that, was looking for ever for a way to do it.

Thanks again.

GuiltyMaggot - The best rock band in the world!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top