Hi,
Just want to know how to make the item in list box and textbox appear together - sync?

Tq

sync??describe a little bit more friend :)

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.....?????

so if you select item in listbox, it will display in textbox. isn't it?

List1.AddItem ("Whatever")
Private Sub List1_Click()
    Text1.Text = List1.Text
End Sub

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

Tq very much my friend ...it's working...

you're welcome friend.
don't forget to mark this thread solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.