How do I determine if the Form Header has focus in a continuous form?

G

Greg (codepug

In a continuous form, I capture the keydown event to determine if the
Del key
was pressed. I have a routine that processes the Delete as I see fit.
However, if the
user is in a control in the Form Header, I do not want the del Key
processed.

How do I determine if the forms header has control ? This may solve my
problem.

Thanks
 
M

Marshall Barton

Greg said:
In a continuous form, I capture the keydown event to determine if the
Del key
was pressed. I have a routine that processes the Delete as I see fit.
However, if the
user is in a control in the Form Header, I do not want the del Key
processed.

How do I determine if the forms header has control ? This may solve my
problem.

Try checking the active control's Section property.
0 - Detail
1 - Header
2 - Footer
 
Top