Private Sub AllKeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtCPU.KeyUp, txtHeatSink.KeyUp, txtMobo.KeyUp, txtRam.KeyUp, txtVideo.KeyUp, txtSound.KeyUp, txtHDD1.KeyUp, txtBurner.KeyUp, txtCPUqty.KeyUp, txtHeatSinkqty.KeyUp, txtMoboqty.KeyUp, txtRamqty.KeyUp, txtVideoqty.KeyUp, txtSoundqty.KeyUp, txtHDD1qty.KeyUp, txtBurnerqty.KeyUp
Dim TextBox As TextBox = CType(sender, TextBox)
Select Case TextBox.Name
Case "txtCPU"
If e.KeyValue = 13 Then txtHeatSink.Focus()
If e.KeyValue = 27 Then txtCustName.Focus()
Case "txtHeatSink"
If e.KeyValue = 13 Then txtMobo.Focus()
If e.KeyValue = 27 Then txtCPU.Focus()
Case "txtMobo"
If e.KeyValue = 13 Then txtRam.Focus()
If e.KeyValue = 27 Then txtHeatSink.Focus()
Case "txtRam"
If e.KeyValue = 13 Then txtVideo.Focus()
If e.KeyValue = 27 Then txtMobo.Focus()
Case "txtVideo"
If e.KeyValue = 13 Then txtSound.Focus()
If e.KeyValue = 27 Then txtRam.Focus()
Case "txtSound"
If e.KeyValue = 13 Then txtHDD1.Focus()
If e.KeyValue = 27 Then txtVideo.Focus()
Case "txtHDD1"
If e.KeyValue = 13 Then txtBurner.Focus()
If e.KeyValue = 27 Then txtSound.Focus()
Case "txtBurner"
If e.KeyValue = 13 Then txtCustName.Focus()
If e.KeyValue = 27 Then txtHDD1.Focus()
End Select
End Sub