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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top