Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
It seems that whenever I issue something like...
ThisPageFrame.ActivePage = 2
...the focus goes to the object with a TabIndex of 2 even if there is an object with a TabIndex of 1. It skips the first object. Even if I issue SetFocus. This bothers me because by default if I click on a page the first object does get the focus, but if I do it through code, the second object does. Does this default behaviour bother anyone else? Or does it only happen to me? Any insights? The real question: What's the best way to make sure that the object I want always gets the focus when I set the ActivePage through code? Thanks!
Regards, Renoir
ps. I'm also bothered by the native behaviour that forces me to use NoDefault in the KeyPress of the last object in order to return focus to the first object. I would think that the second way would be the default.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only