Oh I think I can answer this one!
To add an item:
m_pListBox.Items.Add("Item 1")
To get the selected item:
Private Sub m_pListBox_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles m_pListBox.Click
Dim iIndex as Integer = m_pListBox.SelectedIndex
Dim o as Object = m_pListBox.Items(iIndex)
End Sub
Hope that answers your question.
Ryan
"Sam" <sa**************@voila.fr> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi,
How can I add an item to a listbox so that when we select an item
afterward, we'll get the id associate, like the display member and the
value member for a combobox ?
regards