Take a look I've again checked your
ComboBox1_KeyPress
Event Coding as given
as You mentioned in Comment you are adding Some value in
ComboBox
in Form_Load event. I've also write a function which will able to fill
ComboBox
in
FormLoad event
Private Sub ADDData(ByVal cmb As ComboBox)
Dim i As Integer
For i = 0 To 10
cmb.Items.Add(i)
Next
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ADDData(ComboBox1)
End Sub
Private Sub ComboBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress
If Asc(e.KeyChar) = 13 Then
e.Handled = True
TextBox1.Focus()
Exit Sub
End If
End Sub