General information
Title:
Problem with tab order and setting focus method
I am having an issue with one of my classes that I don't know exactly how to handle. I have an order form class which can (if initiated by the user) call a preorder popup form class which displays items put on preorder. Anyway, after the preorder popup form is closed, I set focus to the appropriate control on my order form. When this control loses focus, it does not follow the order set in the tab index, instead no control receives focus. If you tab again, it sends the focus to the first control on the form (the first item in the tab order for the form). If I specifically code the LostFocus event to Thisform.nextcontrol.SETFOCUS, at times (it appears random?) the new control appears to have focus (the cursor is in the control), but if you attempt to type into this control, nothing happens. If you hit tab once, the control then completely gains control, and you may type information into it.
Has anyone ever experienced this type of behavior before? Or does anyone know how I might be able to fix it?
Thanks in advance!
Maria
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