Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
Ok, I found a way around this by simply setting the focus to the page instead of the textbox on the page. The focus is held by the first textbos like I wanted. Why does this happen though? Does the page Refresh automatically set the focus and then I do it a second time with the KeyPress call causing the focus to go to the second textbox?
Renoir
>In order to keep the tabbing on a form to go from one textbox to another, rather than the page tab, I'm using the KeyPress event of the last textbox to capture the TAB key and set the focus to the first textbox. The focus hits the correct box, but only briefly and then continues onto the second textbox in the TabOrder. It effectively is skipping the textbox I'm directing the focus to. I ran a trace on the code, but it's hard to know exactly what is going on as the pageframe refreshes (on it's own) right after the SetFocus is called. Is there another way to do this? There isn't a TabStop property for the page or I might have tried to set that to false. Thanks!
>
>Regards, Renoir
Previous
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