I have several multi-line textboxes that I want to lose focus (i.e. when the user presses the right arrow key) but the control wil not relinquish the focus.
Simply put, I first verify if the selection start is at the end of the text, if it is, and the user presses the arrow key, it should move to the next textbox.
some debug.print code placed in strategic locations indicates that the target textbox gets focus and immediately loses it and the source textbox gains focus once again. Essentially not allowing the textbox to lose focus.
It should be simple ... I don't understand the problem. After changing the source textbox multi-line property to false, it behaves as expected. Is this a "feature" .. surely I don't have to resort to "SendKeys"
Simply put, I first verify if the selection start is at the end of the text, if it is, and the user presses the arrow key, it should move to the next textbox.
some debug.print code placed in strategic locations indicates that the target textbox gets focus and immediately loses it and the source textbox gains focus once again. Essentially not allowing the textbox to lose focus.
VB.NET:
Select Case
Case Keys.Right
tbRight.Focus()
Case Keys.Left
tbLeft.Focus
End Select
It should be simple ... I don't understand the problem. After changing the source textbox multi-line property to false, it behaves as expected. Is this a "feature" .. surely I don't have to resort to "SendKeys"