How do you get the item's index location in a list box and return the position number instead of a string? I tried returning the index position, but my code only returns the string instead of the position number, here is my code
If lstRoomsOccupied.SelectedIndex <> -1 Then
strLocation = lstRoomsOccupied.Items(lstRoomsOccupied.SelectedIndex).ToString()
strInput = InputBox("Enter the Number of Rooms Occupied on Floor " & strLocation.ToString())
Else
MessageBox.Show("Select an item")
Can anyone help me how to return index position number?