That mean what item that display in listbox will be same display in textbox....other word automaticly display. and one more thing...if i want to change the output from listbox to textbox..how to do it?...i'm just try this but it say "Items is not member of textbox?...can u help me...


listbox1.items.add(""+Serial Number+"")
textbox1.....?????

listbox1.items.add(""+Serial Number+"")

the above syntax is for adding an element in a listbox from the .NET environment.
there is no such member "Item" exists inside the library of methods for listbox in vb6.

and one more thing, your description is not to the point.
will you mind in making it more clear so that others can understand it and help u?

hope u'll

regards
Shouvik

as shouvik said, Item is not member of listbox, if u want to add new item in listbox use listbox.additem("whatever").
if u want to display item selected add this code :

Private Sub List1_Click()
  If List1.ListIndex > -1 Then
        txtOutput.Text = List1.List(List1.ListIndex)
    End If
End Sub
This article has been dead for over six months. Start a new discussion instead.