Advertisement
jsauto

Untitled

Apr 10th, 2013
14,626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.40 KB | None | 0 0
  1.     Private Sub FindStringButton_Click(ByVal sender As System.Object, _
  2.     ByVal e As System.EventArgs) Handles FindStringButton.Click
  3.         Dim index As Integer = ComboBox1.FindString(TextBox1.Text)
  4.         If (index < 0) Then
  5.             MessageBox.Show("Item not found.")
  6.             TextBox1.Text = String.Empty
  7.         Else
  8.             ComboBox1.SelectedIndex = index
  9.         End If
  10.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement