Click to See Complete Forum and Search --> : data from listbox to textbox


diprima
February 13th, 2000, 09:09 PM
How do I copy data from a listbox to a textbox at run-time keeping the same format - ie. look like a list?

Is there a way to perform an OLE drag and drop operation at run-time without actually moving the mouse from source to target object?

Thanks a lot for your help.
Ivan

Lothar Haensler
February 14th, 2000, 03:00 AM
something like this?
for i = 0 to listbox.listcount-1
strText = strText & listbox.list(i) & vbcrlf
next i
textbox.text = strText

make sure your textbox's multiline property is set to true.