I have a list box that is populated with some file names from a directory. I cant seem to find how to tell what is selected. I wrote a message box to show me what was selected but it doesnt work.
I have a list box that is populated with some file names from a
directory. I cant seem to find how to tell what is selected. I wrote a
message box to show me what was selected but it doesnt work.
\\\
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
If Me.ListBox1.SelectedIndex > -1 Then
MsgBox(CStr(Me.ListBox1.SelectedItem))
End If
End Sub
///