hi
you can define a bookmark variable as control
and in lostfocus event of every control set it to that control
Dim Bkm, bkm1 As Control
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
bkm1.Focus()
End Sub
Private Sub TextBox3_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox3.LostFocus
bkm1 = Bkm
Bkm = TextBox3
End Sub
Private Sub TextBox4_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox4.LostFocus
bkm1 = Bkm
Bkm = TextBox4
End Sub
Private Sub TextBox5_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox5.LostFocus
bkm1 = Bkm
Bkm = TextBox5
End Sub
Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus
bkm1 = Bkm
Bkm = TextBox1
End Sub
Private Sub TextBox2_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.LostFocus
bkm1 = Bkm
Bkm = TextBox2
End Sub
when you need to focus the previous control press button3
good luck