you create your own class to add as an item this class can have as mutch
vars as you need
and has to have a overrides to string function to display the text in the
listbox
i'll paste the code below
hope it helps
eric
code
\\
dim li as new clslistitem
li.text = "test"
listbox.items.add(li)
li = new clslistitem("test2")
listbox.items.add(li)
//
if you need to use an item
\\
dim itemke as clslistitem
itemke = listbox.selecteditem
var = itemke.text
//
i havent done altering but it should be similar
try
listbox.selecteditem.text = "test"
listbox.refresh
the class
\\
Public Class clsListItem
Private Tekst As String
Private Tagske As String
Private objke As Object
Public Sub New()
Tekst = ""
Tagske = ""
Omschrijvingske = ""
End Sub
Public Sub New(ByVal te As String)
Tekst = te
Tagske = ""
Omschrijvingske = ""
End Sub
Public Sub New(ByVal te As String, ByVal ta As String)
Tekst = te
Tagske = ta
Omschrijvingske = ""
End Sub
Public Sub New(ByVal te As String, ByVal ta As String, ByVal oms As
String)
Tekst = te
Tagske = ta
Omschrijvingske = oms
End Sub
Public Property Text() As String
Get
Return Tekst
End Get
Set(ByVal Value As String)
Tekst = Value
End Set
End Property
Public Property Tag() As String
Get
Return Tagske
End Get
Set(ByVal Value As String)
Tagske = Value
End Set
End Property
Public ReadOnly Property classe() As Integer
Get
Return 0
End Get
End Property
Public Property Obj() As Object
Get
Return objke
End Get
Set(ByVal Value As Object)
objke = Value
End Set
End Property
Public Overrides Function ToString() As String
Return Tekst
End Function
End Class
//