Vbnet12322
45 pts. | Oct 30 2009 3:42AM GMT
thanndkk skdfjlkjsdf sdfkjdf aljklsdfjjaisdf isadfjlasdjfissa ls dfi



Private Sub ListBox1_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedValueChanged
If mySelectedIndex <> ListBox1.SelectedIndex Then
' do what you have to do
mySelectedIndex = ListBox1.SelectedIndex
End If
End Sub
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.SelectedIndexChanged
If (ListBox1.IndexFromPoint(e.X, e.Y) = ListBox.NoMatches) Then
ListBox1.SetSelected(0, False)
Else
If ListBox1.SelectedIndex = 0 Then
// do here what you want
Else
// do here what you want
End If
End If
End Sub


Vbnet12322
45 pts. | Oct 30 2009 3:42AM GMT
thanndkk skdfjlkjsdf sdfkjdf aljklsdfjjaisdf isadfjlasdjfissa ls dfi
