title: how to display the listbox items to a label using VB2008
body: <p>I am trying to display listbox items in a label.
  After debugging,I get the error : " make sure that the maximun index on the list is less than the list size"</p>
  
  <p>any comment will be  highly appreciate, </p>
  
  <pre><code>Private Sub xMultiButton_Click(ByVal sender As System.Object, _
      ByVal e As System.EventArgs) Handles xMultiButton.Click
  
      Dim count As Integer
      count = Me.xNamesListBox.Items.Count
      For count = 0 To 3
          Me.xResultLabel.Text = Me.xNamesListBox.SelectedItems.Item(0).ToString &amp; ControlChars.NewLine _
              &amp; Me.xNamesListBox.SelectedItems.Item(1).ToString &amp; ControlChars.NewLine _
              &amp; Me.xNamesListBox.SelectedItems.Item(2).ToString &amp; ControlChars.NewLine _
              &amp; Me.xNamesListBox.SelectedItems.Item(3).ToString &amp; ControlChars.NewLine _
              &amp; Me.xNamesListBox.SelectedItems.Item(4).ToString
  
  
      Next
  
  End Sub
  </code></pre>