duanecwilson
Programmer
I have a problem that is really wearing me out. It seems like I'm chasing my tail all day. I solve one problem only to introduce another. I have a form that sets focus immediately to a subform control. It works fine. Then, I tab through, and after being finished entering data in the fields, the focus is set back to the main form closebutton. That works fine. I had a problem when I clicked outside the last field as it would just jump to the close button. So I put a transparent control after the last text field so that would receive the focus and as soon as it got the focus, it would set the focus back to the main form closebutton. That way I could tab out of it and it would go to the close button and that worked fine and I could click out of it and that would work fine.
So after all that, now my new problem. After it sets focus back to the main form close button, I can never go back to the subform. I can click on other controls on the main form, but as soon as I click ANYWHERE on the subform, the focus jumps right back to the main form close button. What is going on here? It seems as once it goes to that close button from the transparent control on the subform, no matter what you do on the subform again, the focus goes right back to the close button.
Duane Wilson
So after all that, now my new problem. After it sets focus back to the main form close button, I can never go back to the subform. I can click on other controls on the main form, but as soon as I click ANYWHERE on the subform, the focus jumps right back to the main form close button. What is going on here? It seems as once it goes to that close button from the transparent control on the subform, no matter what you do on the subform again, the focus goes right back to the close button.
Duane Wilson