Hi, I'm currently converting a vb 6 app to asp.net using VB.net. This let's the user type a letter and the combobox will open up and go to the item: like if the list had 3 items:
Black
White
Green
Typing "G" will move the highlighter to Green. Anybody have ideas for the equivalent of the following code?
VB Code:
Private Sub cboGlasses_KeyPress(ByVal KeyAscii As Integer) Dim chrKey As String Dim i As Long chrKey = Chr(KeyAscii) If cboGlasses.Items. = "" Then For i = 0 To cboGlasses.ListCount - 1 If UCase(Left(cboGlasses.List(i), 1)) = UCase(chrKey) Then KeyAscii = 0 cboGlasses.Text = cboGlasses.List(i) Exit For End If Next End If End Sub
Chris


Reply With Quote