Assume that there are 3 controls on a form, a ComboBox, a TextBox and a Button. The TextBox is disabled when the form is loaded. When the user selects a value in the ComboBox and then tabs out of the control, if the ComboBox passes validation, the TextBox is then enabled.
The problem that I am having is that by the time validating and validated have been processed for the ComboBox and TextBox is enabled, the form has already determined that it is going to move to the Button. I need for it to move to the TextBox.
I have played around with using .Focus(), but this causes problems when the user tries to Shift-Tab.
This seems so simple, yet it has been giving me troubles trying to get around it.




Reply With Quote