How do I tell which, if any, control has the focus on a form?
I'm writing a function key handler and want to determine context.
I see ContainsFocus but that doesn't appear too useful unless you check each and every control. And it may return a false positive in that it looks like it can return true for containers that have a control with the focus on them - I need to know the control with the focus.
I see some posts that say ContainsFocus can be used to check to see if a form has focus but Me.ContainsFocus doesn't exist. How does ContainsFocus work for forms?
View Complete Post