26-03-13, 12:25 AM
26-03-13, 02:00 AM
وضح اكثررر
26-03-13, 02:03 AM
السلام عليكم ورحمة الله وبركاته
تفضل أخي هذا هو الكود
بالتوفيق
تفضل أخي هذا هو الكود
كود :
Private Sub ListBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListBox1.KeyDown
If e.KeyCode = Keys.Down AndAlso ListBox1.SelectedIndex = ListBox1.Items.Count - 1 Then
ListBox1.SelectedIndex = 0
e.Handled = True
End If
If e.KeyCode = Keys.Up AndAlso ListBox1.SelectedIndex = 0 Then
ListBox1.SelectedIndex = ListBox1.Items.Count - 1
e.Handled = True
End If
End Sub
بالتوفيق