Ver originalFor i As Integer = 0 To Me.ListBox.Items.Count - 1 If Not Me.ListBox.SelectedItem Is Nothing Then 'Codigo a ejecutar Else 'Codigo a ejecutar End IfNext