awaj
04-16-2009, 08:32 PM
Hopefully someone can help me out in like 4 hours.
The assignment is in VB 2005 and consists of several steps. the first is to get something selected in a list box to appear in a label when a button is clicked. I got that coded with out a problem. The next part of the assignment is where I have trouble. We are supposed to take multiple items from the list box and insert them into the label. I tried Me.Label.Text = Me.xListBox.SelectedItems.ToString and got a strange output. System.Windows.Forms.ListBox+SelectedObjectColecti onthanks for the help.
for those who are interested, the code looks like
Private Sub xMultiButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xMultiButton.Click
Me.xResultLabel.Text = Nothing
Me.xResultLabel.Text = Me.xNamesListBox.SelectedItems.ToString
End Sub
The assignment is in VB 2005 and consists of several steps. the first is to get something selected in a list box to appear in a label when a button is clicked. I got that coded with out a problem. The next part of the assignment is where I have trouble. We are supposed to take multiple items from the list box and insert them into the label. I tried Me.Label.Text = Me.xListBox.SelectedItems.ToString and got a strange output. System.Windows.Forms.ListBox+SelectedObjectColecti onthanks for the help.
for those who are interested, the code looks like
Private Sub xMultiButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xMultiButton.Click
Me.xResultLabel.Text = Nothing
Me.xResultLabel.Text = Me.xNamesListBox.SelectedItems.ToString
End Sub