I have application called workdesk which has VBA editor tool in it for any modifications. We are migrating the application from XP to Win 7. We are facing a problem in the code after we moved the application to WIN7.

The problem is about focus on control.

We have a validation for each and every controls, if the validation fails, we throw error message and keep the focus on the same control to correct the error. If the validation passed then focus must be moved to next control.

The issue we are facing is whenever the validation is failed the message box pops up when we click ok, the focus is moving to the control but we can;t able to type-in in the control. we have to use to mouse to select the control then we have to type-in. I'm sure the focus is in that control but its not allowing us to type any character through keyboard unless we use mouse to select the control....

This piece of code worked fine in XP...but having issue over WIN7.

I use Cancel = true to keep the focus on the same control, I used this validation on File_Exit event.

hope you understand my problem....

Let me know if you need further details...

pls help

Thanks in advance,
Gowrisankar